/* Karma Speaks - Professional Vedic Astrology Platform */
/* Brand Guidelines v2.0 - November 2025 */
/* YNAB-Inspired Professional Design */

:root {
    /* ========================================
       KARMA SPEAKS BRAND VARIABLES v2.0
       YNAB-Inspired Professional Design
       ======================================== */

    /* Primary Navy Scale */
    --primary-navy: #1C1F58;
    --primary-navy-light: #2A2D6B;
    --primary-navy-dark: #14163F;

    /* Accent Coral */
    --accent-coral: #FF6B35;
    --accent-coral-dark: #E55A2B;

    /* Warm Cream Tint (for section backgrounds) */
    --warm-cream: #FEF9ED;
    --warm-cream-alt: #FFFBF5;

    /* Support Blue */
    --support-blue: #545BFE;
    --support-blue-light: #E8E9FF;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    --bg-warm: #FAFAF8;

    /* Text Colors */
    --text-primary: #1C1F58;
    --text-secondary: #5A5C7D;
    --text-muted: #8B8D9E;
    --text-on-dark: #FFFFFF;

    /* Gray Scale */
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;

    /* Star Rating */
    --star-gold: #FFC107;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;
    --space-3xl: 48px;
    --space-4xl: 64px;
    --space-5xl: 80px;
    --space-6xl: 120px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-coral: 0 2px 4px rgba(255, 107, 53, 0.2);
    --shadow-coral-hover: 0 4px 8px rgba(255, 107, 53, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Container */
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-padding: 24px;

    /* ========================================
       BOOTSTRAP 5 VARIABLE OVERRIDES
       Maps Bootstrap utility classes to brand colors
       ======================================== */

    /* Override Bootstrap Primary Color */
    --bs-primary: #1C1F58;
    --bs-primary-rgb: 28, 31, 88;

    /* Override Bootstrap Secondary (use coral for accents) */
    --bs-secondary: #5A5C7D;
    --bs-secondary-rgb: 90, 92, 125;

    /* Override Bootstrap Link Colors */
    --bs-link-color: #1C1F58;
    --bs-link-hover-color: #FF6B35;

    /* Override Bootstrap Button Colors */
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: #1C1F58;
    --bs-btn-border-color: #1C1F58;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #14163F;
    --bs-btn-hover-border-color: #14163F;
}

/* Global Styles */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Typography - Inter for ALL text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
}

/* Navigation - Navy Background */
.navbar {
  background: var(--primary-navy) !important;
  padding: 16px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: white !important;
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
  padding: 0.75rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
  opacity: 1;
}

/* Primary Button - Coral CTA */
.btn-primary,
.btn-coral,
.btn-gold {
  background: var(--accent-coral);
  color: white !important;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-coral);
}

.btn-primary:hover,
.btn-coral:hover,
.btn-gold:hover {
  background: var(--accent-coral-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral-hover);
  color: white !important;
}

/* Secondary Button - Outline */
.btn-secondary {
  background: transparent;
  color: var(--primary-navy);
  padding: 14px 32px;
  border: 2px solid var(--primary-navy);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: white !important;
}

/* Nav CTA Button */
.nav-cta,
.navbar .btn-primary,
.btn-modern-nav {
  background: var(--accent-coral);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover,
.navbar .btn-primary:hover {
  background: var(--accent-coral-dark);
  transform: translateY(-1px);
}

/* Logo Image */
.logo-img {
  filter: drop-shadow(0 2px 4px rgba(57, 41, 80, 0.2));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
  .top-bar .col-md-6 {
    text-align: center !important;
    margin-bottom: 0.5rem;
  }
  
  .top-bar .d-flex {
    justify-content: center;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 100%);
  padding: 100px 0;
  text-align: center;
}

.hero-section h1 {
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-family: var(--font-primary);
}

.hero-section .lead {
  color: var(--text-secondary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
}

/* Button Outline Variant */
.btn-outline-primary {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  background: transparent;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: white !important;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  font-family: var(--font-primary);
  margin-bottom: 12px;
}

/* Feature Card with Hover Accent */
.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--accent-coral);
}

/* Service Icons */
.service-icon {
  color: var(--support-blue);
}

.price-tag {
  color: var(--primary-navy);
  font-weight: 800;
}

/* Feature Icon Container */
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--support-blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--support-blue);
  font-size: 24px;
}

.feature-item h5 {
  color: var(--primary-navy);
  font-weight: 600;
}

/* Testimonials */
.stars {
  color: var(--star-gold);
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent-coral);
}

/* Sections */
.bg-light {
  background-color: var(--bg-light-gray) !important;
}

.bg-primary {
  background-color: var(--primary-navy) !important;
}

.bg-warm-cream {
  background-color: var(--warm-cream) !important;
}

/* Typography */
.display-4, .display-5 {
  font-weight: 700;
  font-family: var(--font-primary);
}

.text-primary {
  color: var(--primary-navy) !important;
}

/* Social Links */
.social-links a {
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent-coral) !important;
}

/* Footer */
footer {
  background: var(--primary-navy-dark);
  color: white;
  padding: 48px 0 24px;
  border-top: 3px solid var(--accent-coral);
}

footer h4,
footer h5,
footer h6 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-coral);
  font-family: var(--font-primary);
}

footer a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

footer a:hover {
  opacity: 1;
  color: white !important;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 32px;
  text-align: center;
  opacity: 0.7;
}

/* Footer social links */
footer .social-links a {
  color: white;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

footer .social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Forms */
.form-control,
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--text-primary);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-input:focus {
  outline: none;
  border-color: var(--support-blue);
  box-shadow: 0 0 0 3px rgba(84, 91, 254, 0.1);
}

.form-control::placeholder,
.form-input::placeholder {
  color: var(--text-muted);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Booking Form */
.booking-form {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Calendar Styles */
.calendar-container {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Admin Styles */
.admin-sidebar {
  background-color: var(--primary-navy-dark);
  min-height: 100vh;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin: 2px 0;
  opacity: 0.9;
  transition: all var(--transition-fast);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background-color: var(--primary-navy-light);
  color: white;
  opacity: 1;
}

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.dashboard-card:hover {
  transform: translateY(-3px);
}

.dashboard-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-navy);
}

/* Tables */
.table {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead {
  background-color: var(--primary-navy);
  color: white;
}

.table thead th {
  border: none;
  font-weight: 600;
  padding: 15px;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
  border-color: var(--gray-100);
}

/* Status Badges */
.badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-info {
  background-color: var(--support-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-coral {
  color: var(--accent-coral) !important;
}

.text-navy {
  color: var(--primary-navy) !important;
}

.bg-coral {
  background-color: var(--accent-coral) !important;
}

.bg-navy {
  background-color: var(--primary-navy) !important;
}

.border-coral {
  border-color: var(--accent-coral) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-sm) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

/* Gradient Classes */
.gradient-hero {
  background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 100%);
}

.gradient-navy {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
}

.gradient-coral {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-coral-dark));
}

/* Print Styles */
@media print {
  .navbar, .footer, .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .container {
    max-width: none !important;
  }
}

/* Logo Styles */
.logo-img {
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(28, 31, 88, 0.2));
}

.logo-img:hover {
  transform: scale(1.05);
}

.brand-text {
  color: var(--primary-navy);
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: var(--font-primary);
}

/* Logo responsive adjustments */
@media (max-width: 768px) {
  .logo-img {
    height: 40px !important;
  }
  
  .brand-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .logo-img {
    height: 35px !important;
  }
  
  .brand-text {
    font-size: 1rem;
  }
}

/* Logo in different contexts */
.navbar-brand .logo-img {
  max-height: 52px;
  width: auto;
}

.admin .navbar-brand .logo-img {
  max-height: 35px;
  width: auto;
}

/* Logo in footer */
.footer-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 15px;
}

/* Astrological Images Styling */
.hero-astrology-image {
  max-height: 400px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.hero-astrology-image:hover {
  transform: scale(1.02);
}

.zodiac-dial-image {
  max-height: 300px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  filter: brightness(1.05) contrast(1.1);
}

.zodiac-dial-image:hover {
  transform: scale(1.03);
}

.celestial-image {
  max-height: 250px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  filter: brightness(1.1) contrast(1.15);
}

.celestial-image:hover {
  transform: scale(1.03);
}

/* Image containers */
.zodiac-dial-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.zodiac-dial-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.zodiac-dial-container:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Master Image Styling */
.master-image {
  max-height: 400px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  filter: brightness(1.05) contrast(1.1);
}

.master-image:hover {
  transform: scale(1.02);
}

.master-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.master-image-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.master-image-container:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

/* Responsive adjustments for astrological images */
@media (max-width: 768px) {
  .hero-astrology-image {
    max-height: 300px;
  }
  
  .zodiac-dial-image {
    max-height: 200px;
  }
  
  .celestial-image {
    max-height: 180px;
  }
  
  .master-image {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .hero-astrology-image {
    max-height: 250px;
  }
  
  .zodiac-dial-image {
    max-height: 150px;
  }
  
  .celestial-image {
    max-height: 150px;
  }
  
  .master-image {
    max-height: 250px;
  }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

/* Service Card Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

/* Feature Card Hover Effects */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Testimonial Card Hover Effects */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for hero stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats .stat-item {
    animation: countUp 0.8s ease-out forwards;
}

.hero-stats .stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-stats .stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-stats .stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Wheel Rotation Animation - Slower and Fixed Position */
.wheel {
    -webkit-animation: spin 15s linear infinite;
    animation: spin 15s linear infinite;
    transform-origin: center center;
    position: relative;
    display: block;
    margin: 0 auto;
}

/* for Safari browser */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Image Container - Fixed Position */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    overflow: hidden;
}

/* Ensure image stays centered and doesn't move */
.hero-main-image {
    position: relative;
    transform-origin: center center;
}

/* Responsive Hero Image */
@media (max-width: 768px) {
    .hero-main-image {
        max-width: 100% !important;
        margin: 0 auto;
    }
}
