/* Enhanced Website Styling */

/* ==== GLOBAL STYLES ==== */
:root {
  --primary-color: #ff4757;
  --primary-light: #ff6b81;
  --primary-dark: #e83a49;
  --secondary-color: #5352ed;
  --dark-color: #2f3542;
  --dark-accent: #212530;
  --light-color: #f1f2f6;
  --text-color: #333;
  --text-muted: #6c757d;
  --light-background: #f8f9fa;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --content-width: 1200px;
  --header-height: 70px;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --transition-default: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9fa;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== HEADER STYLES ==== */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo a:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 5px;
}

.nav-links a {
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-default);
}

.nav-links a:hover {
  background-color: rgba(255, 71, 87, 0.05);
  color: var(--primary-color);
}

.nav-links a.active {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--primary-color);
}

/* ==== HERO SECTION STYLES ==== */
.hero-section {
  background: var(--gradient-primary);
  position: relative;
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjI1MCI+PHBhdGggZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIiBkPSJNMTQ0MCAxMzAuODZWMjUwSDBWMTQzLjI2YzIwLjgxIDYuOSA0Mi45MSAxMC40MSA2NS4xMSAxMC4zMSA2MC4yMi0uMjQgMTE2LjgtMjIuMzQgMTctNTQuMDkgMTguMzMtMTIuMTEgMzktMjEuMjMgNjAuODEtMjcuMzRDQzE0O2M5MS40OC0xMS4yNSAxNTQtMTA0LjMgMTQwLjI4LTE5Mi45NCA0NS4yMiAxOS4xNSA4Mi4wOCA3KE0xNDQwIDEzMC44NlYyNTBIMFYxNDMuMjZjMjAuODEgNi45IDQyLjkxIDEwLjQxIDY1LjExIDEwLjMxIDYwLjIyLS4yNCAxMTYuOC0yMi4zNCAxNjYuNjEtNzAuNTUgMTcuODUtMTcuMjYgMzUtMzIuMjUgNTQuMDktMTguMzMgMTIuMTEgMzkgMjEuMjMgNjAuODEgMjcuMzRDMyAxNCBjOS42MSA2MyA0Ny4zMyAxMDggOS42Ni0xNzIgMTAyLjMgNTYuNzIgMjIuNDIgMTIyLjI5IDM5Ljk0IDE5LiA4Mi4wOCA3MCAxNzMgMjYuNzIgMjYwLjQ0LTE3IDM5LjM2LTIxLjcyIDgwLjgxLTMzLjgzIDEyMy4zOS0zNS4wOSAxNzAuOC02LjU0IDMwNS44NSAxMDggMzA2LjMzIDI3Ni43IDE3LjM2LTUyLjM0IDUyLjkzLTk2Ljk2IDk5LjQzLTEyNi4wMyAyMC0xMi40NSA0MS40My0yMi4yNSA2NC4xMS0yOS4xN3oiLz48L3N2Zz4=');
  background-position: bottom center;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.hero-section:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.search-form {
  margin-top: 40px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-container input {
  flex: 1;
  padding: 16px 25px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 16px;
  transition: var(--transition-default);
}

.search-container input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.search-container button {
  background-color: var(--dark-color);
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 16px 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition-default);
}

.search-container button:hover {
  background-color: var(--dark-accent);
}

/* ==== PROFILES GRID STYLES ==== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0 30px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--dark-color);
  font-weight: 700;
  position: relative;
  padding-left: 20px;
}

.section-header h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 6px;
  background: var(--primary-color);
  border-radius: 3px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.profile-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-default);
  position: relative;
  top: 0;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.profile-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.profile-image {
  height: 220px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-image img {
  transform: scale(1.05);
}

.no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: var(--gradient-primary);
  color: white;
  font-size: 70px;
  font-weight: bold;
}

.profile-info {
  padding: 20px;
  position: relative;
  background: white;
}

.profile-info h3 {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 600;
}

.username {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 14px;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.profile-stats span {
  display: flex;
  align-items: center;
}

.profile-stats i {
  margin-right: 6px;
  color: var(--primary-color);
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0 80px;
}

.page-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border-radius: var(--border-radius-sm);
  background-color: white;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-default);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.page-link:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.page-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* ==== PROFILE PAGE STYLES ==== */
.profile-page {
    background-color: var(--body-bg);
}

.profile-header {
  position: relative;
  margin-bottom: 80px;
}

.profile-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-banner:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.default-banner {
  background: var(--gradient-primary);
}

.profile-header-content {
  position: relative;
  margin-top: -130px;
  padding: 0 20px;
}

.profile-header-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 30px;
  padding-top: 80px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: white;
  border: 5px solid white;
  overflow: hidden;
  margin: 0 auto;
  margin-top: -160px;
  position: relative;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar .no-image {
  font-size: 40px;
}

.profile-title {
  margin: 20px 0;
}

.profile-title h1 {
  font-size: 32px;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  color: var(--text-muted);
  margin: 20px 0;
}

.profile-bio {
  margin: 25px auto 0;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Content Section Redesign */
.content-section {
  padding: 40px 0 80px;
}

.content-section h2 {
  margin-bottom: 30px;
  color: var(--dark-color);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.content-section h2:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.content-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-default);
  background: white;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.content-card img,
.content-card video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 50px;
}

.video-overlay i {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-default);
}

.content-card:hover .video-overlay i {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.content-title {
  padding: 15px 20px;
  background-color: white;
  font-weight: 500;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Content Locking */
.content-locked {
  position: relative;
}

.lock-message {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lock-message h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lock-message h3 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 71, 87, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.lock-message p {
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: 16px;
}

#unlock-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-default);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

#unlock-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.completion-status {
  margin-top: 25px;
}

.progress-bar {
  height: 10px;
  background-color: #f1f2f6;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
}

.blurred-content {
  position: relative;
}

.blurred {
  filter: blur(15px);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  transform: scale(0.95);
}

.blurred::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.footer-logo h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  display: inline-block;
}

.footer-links h4:after,
.footer-contact h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-default);
  padding-left: 15px;
  position: relative;
}

.footer-links a:before {
  content: "→";
  position: absolute;
  left: 0;
  transition: var(--transition-default);
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover:before {
  left: 5px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact p i {
  color: var(--primary-color);
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-content p {
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .search-container {
    flex-direction: column;
    border-radius: var(--border-radius);
  }
  
  .search-container input {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 14px 20px;
  }
  
  .search-container button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 14px 20px;
  }
  
  .profile-header-card {
    padding: 20px;
    padding-top: 70px;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
    margin-top: -140px;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .main-nav {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .logo {
    margin-bottom: 10px;
  }
  
  .hero-section {
    padding: 60px 0 80px;
  }
  
  .hero-content h1 {
    font-size: 30px;
  }
  
  .profiles-grid {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .lock-message {
    padding: 30px 20px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 40px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
}

/* Dark Theme CSS Variables */
:root {
  /* Light Theme (Default) */
  --body-bg: #f8f9fa;
  --text-color: #333;
  --text-muted: #6c757d;
  --card-bg: #ffffff;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --primary-color: #ff4757;
  --primary-light: #ff6b81;
  --primary-dark: #e83a49;
  --secondary-color: #5352ed;
  --dark-color: #2f3542;
  --light-color: #f1f2f6;
  --header-bg: #ffffff;
  --header-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  --border-color: #dee2e6;
  --input-bg: #ffffff;
  --footer-bg: #2f3542;
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-heading: #ffffff;
  --progress-bg: #f1f2f6;
  --gradient-overlay: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

/* Dark Theme */
[data-theme="dark"] {
  --body-bg: #1a1d21;
  --text-color: #f1f2f6;
  --text-muted: #adb5bd;
  --card-bg: #2a2e33;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --primary-color: #ff4757;
  --primary-light: #ff6b81;
  --primary-dark: #e83a49;
  --secondary-color: #5352ed;
  --dark-color: #151719;
  --light-color: #2a2e33;
  --header-bg: #2a2e33;
  --header-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  --border-color: #444;
  --input-bg: #2f3542;
  --footer-bg: #151719;
  --footer-text: rgba(255, 255, 255, 0.6);
  --footer-heading: #f1f2f6;
  --progress-bg: #2f3542;
  --gradient-overlay: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
}

/* Apply the variables to elements */
body {
  background-color: var(--body-bg);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
}

.nav-links a {
  color: var(--text-color);
}

.profile-card, 
.content-card, 
.lock-message,
.empty-state {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.content-title {
  color: var(--text-color);
}

footer {
  background-color: var(--footer-bg);
}

footer p {
  color: var(--footer-text);
}

footer h4, footer h3 {
  color: var(--footer-heading);
}

.progress-bar {
  background-color: var(--progress-bg);
}

/* Username color in profile */
.username {
  color: var(--text-muted);
}

/* Profile banner gradient overlay */
.profile-banner:after {
  background: var(--gradient-overlay);
}

/* Enhanced Dark Theme CSS - Fixing all text colors */
:root {
  /* Light Theme (Default) */
  --body-bg: #f8f9fa;
  --text-color: #333;
  --text-muted: #6c757d;
  --heading-color: #2f3542;
  --card-bg: #ffffff;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --primary-color: #ff4757;
  --primary-light: #ff6b81;
  --primary-dark: #e83a49;
  --secondary-color: #5352ed;
  --dark-color: #2f3542;
  --light-color: #f1f2f6;
  --header-bg: #ffffff;
  --header-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  --border-color: #dee2e6;
  --input-bg: #ffffff;
  --input-color: #333;
  --footer-bg: #2f3542;
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-heading: #ffffff;
  --progress-bg: #f1f2f6;
  --card-title-color: #2f3542;
  --nav-link-color: #333;
  --active-nav-bg: rgba(255, 71, 87, 0.1);
  --active-nav-color: #ff4757;
  --stat-color: #6c757d;
  --profile-text: white;
  --gradient-overlay: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
  --modal-bg: white;
  --modal-text: #333;
  --lock-title: #2f3542;
  --section-title: #2f3542;
  --offer-bg: white;
  --offer-text: #333;
  --offer-title: #222;
}

/* Dark Theme */
[data-theme="dark"] {
  --body-bg: #1a1d21;
  --text-color: #e4e6eb;
  --text-muted: #adb5bd;
  --heading-color: #f1f1f1;
  --card-bg: #2a2e33;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --primary-color: #ff4757;
  --primary-light: #ff6b81;
  --primary-dark: #e83a49;
  --secondary-color: #5352ed;
  --dark-color: #151719;
  --light-color: #2a2e33;
  --header-bg: #2a2e33;
  --header-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  --border-color: #444;
  --input-bg: #3a3f47;
  --input-color: #e4e6eb;
  --footer-bg: #151719;
  --footer-text: rgba(255, 255, 255, 0.6);
  --footer-heading: #f1f1f1;
  --progress-bg: #3a3f47;
  --card-title-color: #e4e6eb;
  --nav-link-color: #e4e6eb;
  --active-nav-bg: rgba(255, 71, 87, 0.2);
  --active-nav-color: #ff6b81;
  --stat-color: #d1d2d5;
  --profile-text: white;
  --gradient-overlay: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
  --modal-bg: #2a2e33;
  --modal-text: #e4e6eb;
  --lock-title: #e4e6eb;
  --section-title: #e4e6eb;
  --offer-bg: #3a3f47;
  --offer-text: #e4e6eb;
  --offer-title: #f1f1f1;
}

/* Basic Elements */
body {
  background-color: var(--body-bg);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
}

p, div, span, li {
  color: var(--text-color);
}

a {
  color: var(--primary-color);
}

input, textarea, select {
  background-color: var(--input-bg);
  color: var(--input-color);
  border-color: var(--border-color);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
}

/* Header & Navigation */
header {
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
}

.logo a {
  color: var(--primary-color);
}

.nav-links a {
  color: var(--nav-link-color);
}

.nav-links a:hover {
  background-color: var(--active-nav-bg);
  color: var(--active-nav-color);
}

.nav-links a.active {
  background-color: var(--active-nav-bg);
  color: var(--active-nav-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.hero-content h1, 
.hero-content p {
  color: white;
}

/* Cards & Sections */
.profile-card, 
.content-card, 
.lock-message,
.empty-state,
.feature-card {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.content-title,
.feature-card h3,
.empty-state h3 {
  color: var(--card-title-color);
}

.lock-message h3 {
  color: var(--lock-title);
}

.lock-message p,
.empty-state p,
.feature-card p {
  color: var(--text-muted);
}

.content-section h2 {
  color: var(--section-title);
}

/* Profile Specific */
.profile-details h1 {
  color: var(--profile-text);
}

.username {
  color: var(--profile-text);
  opacity: 0.9;
}

.profile-stats {
  color: var(--profile-text);
  opacity: 0.9;
}

.profile-stats i {
  color: var(--profile-text);
  opacity: 0.9;
}

.profile-bio p {
  color: var(--profile-text);
  opacity: 0.9;
}

/* Profile Text with Dark Background */
[data-theme="dark"] .profile-banner:after {
  background: var(--gradient-overlay);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
}

footer p,
footer a {
  color: var(--footer-text);
}

footer h3, 
footer h4 {
  color: var(--footer-heading);
}

/* Progress Bar */
.progress-bar {
  background-color: var(--progress-bg);
}

/* Modals and Popups */
.tap-rain-modal {
  background: var(--modal-bg);
}

.tap-rain-modal-content {
  color: var(--modal-text);
}

.offer-item {
  background: var(--offer-bg);
  color: var(--offer-text);
}

.offer-title {
  color: var(--offer-title);
}

/* Blurred Content */
.blurred::after {
  background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blurred::after {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Theme Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.theme-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

/* Make text in offer modal visible */
[data-theme="dark"] .offer-item button {
  background: var(--primary-color);
  color: white;
}

[data-theme="dark"] .tap-rain-modal-content h3 {
  color: var(--heading-color);
}

[data-theme="dark"] .tap-rain-modal-content p {
  color: var(--text-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .theme-switch-wrapper {
    margin-top: 15px;
    margin-left: 0;
  }
}

/* Dark theme fixes for section headers and profile cards */
[data-theme="dark"] .section-header h2 {
  color: var(--heading-color);
}

[data-theme="dark"] .profile-card {
  background-color: var(--card-bg);
}

[data-theme="dark"] .profile-info {
  background-color: var(--card-bg);
}

[data-theme="dark"] .profile-info h3 {
  color: var(--heading-color);
}

[data-theme="dark"] .username {
  color: var(--text-muted);
}

[data-theme="dark"] .profile-stats {
  color: var(--text-muted);
}

[data-theme="dark"] .profile-card .profile-stats span {
  color: var(--text-muted);
}

[data-theme="dark"] .profile-stats i {
  color: var(--primary-color);
}

/* Fix for empty state text */
[data-theme="dark"] .empty-state h3 {
  color: var(--heading-color);
}

[data-theme="dark"] .empty-state p {
  color: var(--text-muted);
}

/* Fix for feature cards */
[data-theme="dark"] .feature-card {
  background-color: var(--card-bg);
}

[data-theme="dark"] .feature-card h3 {
  color: var(--heading-color);
}

[data-theme="dark"] .feature-card p {
  color: var(--text-muted);
}

/* Fix for pagination */
[data-theme="dark"] .page-link {
  background-color: var(--card-bg);
  color: var(--text-color);
}

[data-theme="dark"] .page-link:hover {
  background-color: var(--light-color);
}

[data-theme="dark"] .page-link.active {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] .profile-page {
    background-color: var(--body-bg);
}

.site-logo {
    max-height: 40px; /* Adjust height as needed */
    width: auto;
    vertical-align: middle;
}

/* Simple Responsive Header Fix */

/* Logo styling */
.site-logo {
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  /* Keep nav flex direction as row but ensure proper spacing */
  .main-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
    width: 100%;
  }
  
  /* Keep logo and nav links on same row but ensure they don't crowd */
  .logo {
    margin-right: 10px;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Ensure theme switch is properly sized on mobile */
  .theme-switch-wrapper {
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .site-logo {
    max-height: 35px;
  }
  
  .nav-links a {
    padding: 6px 12px;
  }
}