/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  margin: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #667eea;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: none;
  border: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  z-index: 1001;
  top: 100%;
  right: 0;
  padding: 0.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInDown 0.3s ease;
}

/* Show dropdown when active (JavaScript controlled) */
.dropdown.active .dropdown-content {
  display: block !important;
  animation: fadeInDown 0.3s ease;
}

/* Show dropdown when show class is added */
.dropdown-content.show {
  display: block !important;
  animation: fadeInDown 0.3s ease;
}

/* Dropdown links - force vertical layout */
.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  clear: both;
  float: none;
}

.dropdown-content a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(5px);
}

.dropdown-content a::after {
  display: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content */
main {
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Sections */
section {
  padding: 4rem 0;
  background: white;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-card p {
  color: #666;
  line-height: 1.6;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Theme Support */
.dark-theme {
  background: #1a1a1a;
  color: #e0e0e0;
}

.dark-theme header {
  background: rgba(45, 45, 45, 0.95);
}

.dark-theme .nav-links a {
  color: #e0e0e0;
}

.dark-theme .nav-links a:hover {
  color: #667eea;
}

.dark-theme .dropdown-btn {
  color: #e0e0e0;
}

.dark-theme .dropdown-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.dark-theme .dropdown-content {
  background: #2d2d2d;
  border-color: #555;
}

.dark-theme .dropdown-content a {
  color: #e0e0e0;
}

.dark-theme .dropdown-content a:hover {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.dark-theme section {
  background: #2d2d2d;
  color: #e0e0e0;
}

.dark-theme .section-title {
  color: #e0e0e0;
}

.dark-theme .about-card {
  background: #3d3d3d;
  color: #e0e0e0;
}

.dark-theme .about-card h3 {
  color: #667eea;
}

.dark-theme .about-card p {
  color: #ccc;
}

.dark-theme .form-group label {
  color: #e0e0e0;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
  background: #3d3d3d;
  border-color: #555;
  color: #e0e0e0;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus {
  border-color: #667eea;
}

.dark-theme footer {
  background: #1a1a1a;
}


/* Affiliate Links Section */
.affiliate-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.affiliate-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.affiliate-item:hover {
  transform: translateY(-3px);
}

.affiliate-item h4 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

.affiliate-link {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.affiliate-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.discount-code {
  font-size: 0.8rem;
  color: #28a745;
  font-weight: bold;
  margin: 0.5rem 0 0 0;
}

/* Mobile responsiveness for affiliate links */
@media (max-width: 768px) {
  .affiliate-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .affiliate-item {
    padding: 1rem;
  }
  
  .affiliate-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Dark theme for affiliate links */
.dark-theme .affiliate-item {
  background: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.dark-theme .affiliate-item h4 {
  color: #e0e0e0;
}

.dark-theme .discount-code {
  color: #4CAF50;
}


/* Guidelines section styling (for btc-loan-ltv page) */
.guidelines-section .affiliate-links,
.totals-display .affiliate-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-top: 1rem !important;
}

.guidelines-section .affiliate-item,
.totals-display .affiliate-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.guidelines-section .affiliate-item:hover,
.totals-display .affiliate-item:hover {
  transform: translateY(-3px);
}

.guidelines-section .affiliate-item h4,
.totals-display .affiliate-item h4 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

.guidelines-section .affiliate-link,
.totals-display .affiliate-link {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.guidelines-section .affiliate-link:hover,
.totals-display .affiliate-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.guidelines-section .discount-code,
.totals-display .discount-code {
  font-size: 0.8rem;
  color: #28a745;
  font-weight: bold;
  margin: 0.5rem 0 0 0;
}

/* Brave browser warning styles */
.brave-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.brave-instructions {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.brave-instructions button {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
}

.brave-instructions button:hover {
    background: #0056b3;
}

/* Dark theme for Brave warnings */
.dark-theme .brave-warning {
    background: #2d2d2d;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .brave-instructions {
    background: #1a2332;
    border-color: #2c5aa0;
    color: #e0e0e0;
}

/* Dark theme for guidelines section affiliate links */
.dark-theme .guidelines-section .affiliate-item,
.dark-theme .totals-display .affiliate-item {
  background: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.dark-theme .guidelines-section .affiliate-item h4,
.dark-theme .totals-display .affiliate-item h4 {
  color: #e0e0e0;
}

.dark-theme .guidelines-section .discount-code,
.dark-theme .totals-display .discount-code {
  color: #4CAF50;
}