﻿/* ==========================================
   SILVERLINING NOW - GLOBAL STYLES
   ========================================== */

:root {
  --color-primary-purple: #9333ea;
  --color-secondary-purple: #a855f7;
  --color-dark-bg: #140a1f;
  --color-light-bg: #f8f4ff;
  --color-text-dark: #1f2937;
  --color-text-light: #ffffff;
  --color-accent-purple: #e879f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 10, 31, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 51, 234, 0.2);
  padding: 1rem 0;
}

body.light-mode header {
  background: rgba(248, 244, 255, 0.95);
  border-bottom-color: rgba(168, 85, 247, 0.2);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text-light);
}

body.light-mode .logo {
  color: var(--color-text-dark);
}

.logo-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

body.light-mode nav a {
  color: var(--color-text-dark);
}

nav a:hover {
  color: var(--color-accent-purple);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-text-dark);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(148, 51, 234, 0.2);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

body.light-mode footer {
  background: rgba(168, 85, 247, 0.05);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent-purple);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--color-text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

body.light-mode .footer-section a {
  color: var(--color-text-dark);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--color-accent-purple);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(148, 51, 234, 0.2);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--color-primary-purple);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 51, 234, 0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ==========================================
   COMMON STYLES
   ========================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e879f9 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent-purple);
  color: var(--color-accent-purple);
}

.btn-secondary:hover {
  background: var(--color-accent-purple);
  color: var(--color-dark-bg);
}


/* ==========================================
   MOBILE MENU
   ========================================== */

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1001;
}

body.light-mode .menu-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-text-dark);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  #mainNav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 10, 31, 0.98);
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    gap: 0.5rem;
  }

  body.light-mode #mainNav {
    background: rgba(248, 244, 255, 0.98);
  }

  #mainNav.active {
    display: flex;
  }

  #mainNav a {
    padding: 0.75rem 1rem;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}