:root {
  --s-color: #00c3ff;
  --k-color: #ff005e;
  --y-color: #00ff85;
  --dark-bg: #1a2238;


header, footer {
  background-color: #1a2238;  /* was --dark-bg */
  color: #f0f5ff;            /* was --text-light */
}

header a, footer a {
  color: #00c3ff;  /* was --s-color */
  transition: all 0.3s ease; /* was --transition */
}

header a:hover, footer a:hover {
  color: #ff005e; /* was --k-color */
}


header {
  background: #242f4e;
  text-align: center;
  padding: 12px 15px;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* was var(--shadow) */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(135deg, #00c3ff, #ff005e, #00ff85); /* was var(--gradient) */
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  background: linear-gradient(135deg, var(--s-color), var(--k-color), var(--y-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 1200;
  font-size: 0.8em;
}

.auth-section {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

/* Buttons */
.feature-btn, .tool-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.feature-btn:hover, .tool-btn:hover {
  background: linear-gradient(90deg, #ff4e50, #f9d423); /* gradient hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-links {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Header Links & Dropdown */
.header-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1001; /* Parent z-index for stacking */
}

/* Dropdown container */
.dropdown {
  position: relative;
  z-index: 1002; /* Ensure dropdown has higher z-index */
}

/* Dropdown button */
.dropbtn {
  background-color: #007bff; 
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Dropdown content container */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #00ff85;        /* White background */
  color: #ff005e;             /* Black text */
  min-width: 170px;           /* Reduced width */
  max-width: 170px;           /* Optional max width */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1003;              /* Higher than all other elements */
  overflow: visible !important;
  font-weight: 800;
  transition: all 0.2s ease;
}

/* Dropdown links */
.dropdown-content a {
  color: #ff005e;       /* Black text */
  padding: 8px 10px;   /* Padding inside links */
  text-decoration: none;
  display: block;
  font-size: 12px;      /* Add this line to reduce text size */
}

.dropdown-content a:hover {
  background-color: #f1f1f1;  /* Light gray hover effect */
}

/* Show dropdown on hover (desktop) */
@media (min-width: 768px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Ensure no parent elements are clipping the dropdown */
header, .container, body {
  overflow: visible !important;
}

/* Show dropdown when .show added via JS (mobile) */
.dropdown-content.show {
  display: block;
}

/* Mobile-specific dropdown */
@media (max-width: 768px) {
  .dropdown-content {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;          /* Full width on mobile */
    top: 80px;                /* Adjust based on header height */
    border-radius: 0;
    background: #ffffff;      /* White background on mobile */
    z-index: 1003;
  }

  .dropdown-content a {
    color: #000000;
  }

  .dropdown-content a:hover {
    background-color: #f1f1f1;
  }
}

/* Footer Styles */
footer {
  background: #242f4e; /* was var(--card-bg), thoda light dark */
  padding: 12px 20px;
  text-align: center;
  margin-top: auto;
  font-size: 0.85em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  color: var(--y-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--s-color);
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for header and footer */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .auth-section {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-links {
    gap: 8px;
  }
}
