/* Coral Lore - Shared Styles with Theme System */
/* CSS Custom Properties for Light/Dark theme switching */

/* ============== CSS VARIABLES - THEME SYSTEM ============== */
:root[data-theme="light"],
:root {
  --bg-primary: #FDFBF7;
  --bg-secondary: #F5F2EC;
  --bg-tertiary: #EEEBE5;
  --text-primary: #2F2F2F;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --accent: #E37262;
  --accent-light: #F0998D;
  --gold: #D1B26F;
  --gold-light: #E8C856;
  --dark: #0A2429;
  --dark-light: #1A3A45;
  --border: #E0DDD6;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-heavy: rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] {
  --bg-primary: #0A2429;
  --bg-secondary: #1A3A45;
  --bg-tertiary: #2A4A55;
  --text-primary: #FDFBF7;
  --text-secondary: #CCCCCC;
  --text-tertiary: #999999;
  --accent: #FF8A7D;
  --accent-light: #FFA399;
  --gold: #E8C856;
  --gold-light: #F5D969;
  --dark: #FDFBF7;
  --dark-light: #E5E2DB;
  --border: #3A4A55;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --shadow-heavy: rgba(0, 0, 0, 0.4);
}

/* ============== GLOBAL STYLES ============== */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Hindi font support */
:root[lang="hi"] body {
  font-family: 'Lato', 'Noto Sans Devanagari', 'Devanagari', sans-serif;
}

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.5;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ============== NAVIGATION ============== */
.navbar {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

:root[data-theme="dark"] .navbar {
  background-color: rgba(10, 36, 41, 0.98) !important;
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--dark) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--accent) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* Language and Theme Toggle */
.nav-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.nav-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 50%;
}

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

#themeToggleBtn {
  width: 36px;
  height: 36px;
}

#languageToggleBtn {
  min-width: 48px;
  height: 36px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg-secondary);
}

#languageToggleBtn:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============== BUTTONS ============== */
.btn {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-primary {
  background-color: var(--dark);
  border-color: var(--dark);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary {
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline-primary:hover {
  background-color: var(--dark);
  color: var(--bg-primary);
}

.btn-outline-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-light {
  background-color: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--text-primary);
}

.btn-light:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ============== BENTO GRID SYSTEM ============== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

.bento-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--shadow-medium);
}

/* Grid span utilities */
.bento-item-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-item-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-item-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

/* Responsive bento grid */
@media (max-width: 1024px) {
  .bento-item-2x1,
  .bento-item-1x2,
  .bento-item-2x2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============== CARDS ============== */
.card {
  border: none;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--shadow-medium);
}

.card-img-top {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  height: 250px;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============== HERO SECTIONS ============== */
.hero-banner {
  position: relative;
  color: var(--bg-primary);
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.hero-banner .content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-banner h1 {
  color: var(--bg-primary);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-banner p {
  color: var(--bg-primary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* ============== SECTIONS ============== */
.section {
  padding: 4rem 0;
  border-radius: 16px;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

/* ============== FORMS ============== */
.form-control,
.form-select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(227, 114, 98, 0.25);
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ============== FOOTER ============== */
footer {
  background-color: var(--dark);
  color: var(--bg-primary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
}

footer h6 {
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

footer p {
  color: var(--bg-primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--bg-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.footer-divider {
  border-top: 1px solid rgba(227, 114, 98, 0.3);
}

/* ============== RESPONSIVE DESIGN ============== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-banner {
    height: 60vh;
    min-height: 400px;
  }

  .container {
    padding: 0 12px;
  }

  .nav-controls {
    margin-left: 0.5rem;
    gap: 0.3rem;
  }

  #languageToggleBtn {
    min-width: 44px;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-banner {
    height: 50vh;
    min-height: 300px;
  }

  .section {
    padding: 2rem 0;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ============== UTILITY CLASSES ============== */
.text-accent {
  color: var(--accent);
}

.text-gold {
  color: var(--gold);
}

.bg-accent {
  background-color: var(--accent);
}

.bg-dark-coral {
  background-color: var(--dark);
}

.text-light-coral {
  color: var(--bg-primary);
}

.rounded-12 {
  border-radius: 12px;
}

.rounded-16 {
  border-radius: 16px;
}

.shadow-sm {
  box-shadow: 0 1px 3px var(--shadow-light);
}

.shadow-md {
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.shadow-lg {
  box-shadow: 0 8px 24px var(--shadow-heavy);
}

/* ============== ANIMATIONS ============== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease;
}

.slide-in-right {
  animation: slideInRight 0.6s ease;
}

/* ============== COOKIE CONSENT ============== */
#cookieConsentBanner {
  background-color: var(--dark) !important;
  box-shadow: 0 -4px 12px var(--shadow-medium);
}

#cookieConsentBanner p {
  color: var(--bg-primary);
  font-size: 0.9rem;
  margin: 0;
}

#acceptCookieBtn {
  background-color: var(--accent) !important;
  color: white !important;
  border: none !important;
  font-weight: 600;
  white-space: nowrap;
}

#acceptCookieBtn:hover {
  background-color: var(--accent-light) !important;
}

/* ============== ACCESSIBILITY ============== */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============== PRINT STYLES ============== */
@media print {
  body {
    background-color: white;
    color: black;
  }

  .navbar,
  footer,
  #cookieConsentBanner {
    display: none;
  }
}
