/* ==========================================================================
   RAM LEELA CONTEST PLATFORM - CORE STYLES & DESIGN TOKENS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Udayan Kidz Clean White Color Palette */
  --bg-darkest: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-surface: #f1f5f9;
  
  /* Brand Primary Accents (From Udayan Kidz Logo) */
  --brand-orange: #f37023;
  --brand-orange-light: #ff7a1a;
  --brand-orange-glow: rgba(243, 112, 35, 0.22);
  --brand-magenta: #e6007e;
  --brand-magenta-light: #d81b60;
  --brand-magenta-glow: rgba(230, 0, 126, 0.22);
  --brand-yellow: #fdb813;
  --brand-purple: #7b1fa2;
  --brand-purple-light: #8e24aa;
  
  /* Backward-compatible theme hooks */
  --gold-primary: #f37023;
  --gold-light: #e65100;
  --gold-vivid: #f37023;
  --gold-deep: #c2410c;
  --saffron-bright: #f37023;
  --saffron-warm: #fdb813;
  --amber-glow: rgba(243, 112, 35, 0.2);
  --crimson-accent: #e6007e;
  --emerald-accent: #16a34a;
  
  /* Text Colors (High Contrast on White) */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-gold: #c2410c;
  
  /* Borders */
  --border-subtle: rgba(243, 112, 35, 0.18);
  --border-highlight: rgba(243, 112, 35, 0.45);
  --border-glass: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Outfit', 'Cinzel', Georgia, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card: 0 10px 30px -4px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(243, 112, 35, 0.14);
  --shadow-glow: 0 4px 20px -2px var(--brand-orange-glow);
}

/* Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(243, 112, 35, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 35%, rgba(230, 0, 126, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 65%, rgba(253, 184, 19, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 30% 90%, rgba(123, 31, 162, 0.03) 0%, transparent 50%);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.2px;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--brand-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-orange-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Udayan Kidz Gradient Text */
.text-gradient-gold, .text-gradient-brand {
  background: linear-gradient(135deg, #ff9e42 0%, #f37023 45%, #e6007e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Contest title specific colors (matching reference image) */
.text-maroon {
  color: #8b1a00 !important;
  -webkit-text-fill-color: #8b1a00 !important;
}

.text-gold-warm {
  color: #b07d00 !important;
  -webkit-text-fill-color: #b07d00 !important;
}


.text-gradient-magenta {
  background: linear-gradient(135deg, #ff52ad 0%, #e6007e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(245, 176, 65, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-subtitle {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 176, 65, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245, 176, 65, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeIn 0.45s ease-out forwards;
}

/* ═══ FLOATING SOCIAL BUTTONS (MID-SCREEN) ═══ */
.floating-socials-dock {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.floating-socials-left {
  left: 0;
}

.floating-socials-right {
  right: 0;
  align-items: flex-end;
}

.floating-social-btn {
  display: flex;
  align-items: center;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  height: 44px;
}

/* Left Buttons (Instagram & Facebook) */
.floating-socials-left .floating-social-btn {
  border-radius: 0 24px 24px 0;
  padding: 0 16px 0 12px;
  gap: 10px;
  transform: translateX(-4px);
}
.floating-socials-left .floating-social-btn:hover {
  transform: translateX(0);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

/* Right Buttons (YouTube & LinkedIn) */
.floating-socials-right .floating-social-btn {
  border-radius: 24px 0 0 24px;
  padding: 0 12px 0 16px;
  gap: 10px;
  transform: translateX(4px);
  flex-direction: row-reverse;
}
.floating-socials-right .floating-social-btn:hover {
  transform: translateX(0);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

/* Specific Brand Colors */
.floating-btn-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}
.floating-btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
}
.floating-btn-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}
.floating-btn-linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.floating-social-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-social-icon svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
}

.floating-social-label {
  letter-spacing: 0.4px;
  line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .floating-socials-dock {
    gap: 8px;
  }
  .floating-social-btn {
    height: 38px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  }
  .floating-social-label {
    display: none; /* Icon-only on mobile so it stays compact and doesn't block content */
  }
  .floating-socials-left .floating-social-btn {
    border-radius: 0 20px 20px 0;
    padding: 0 10px 0 8px !important;
  }
  .floating-socials-right .floating-social-btn {
    border-radius: 20px 0 0 20px;
    padding: 0 8px 0 10px !important;
  }
  .floating-social-icon {
    width: 20px;
    height: 20px;
  }
}
