/* 🎨 THEME26 - CLEAN MODERN DESIGN SYSTEM 🎨 */

/* ============================================
   🌈 COLOR SCHEME SYSTEM
============================================ */
:root {
  /* 🎯 Surface Colors */
  --surface-white: #ffffff;
  --surface-light: #f8fafc;
  --surface-medium: #e2e8f0;
  --surface-dark: #1e293b;
  --surface-darker: #0f172a;
  
  /* 📝 Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* 📏 Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* 🎭 Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* 🎪 Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* ⚡ Transitions */
  --transition: 0.2s ease;
  
  /* 🎨 Color variables are loaded dynamically from manifest.json via Smarty foreach loop */
}

/* Color variables are now loaded directly from PHP/Smarty via foreach loop in layout.tpl */

/* ============================================
   🏗️ BASE STYLES
============================================ */
* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family, var(--font-primary));
  background: var(--surface-light);
  color: var(--surface-dark);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ============================================
   🎭 HEADER
============================================ */
.modern-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
}

@media (max-width: 768px) {
  .header-container {
    padding: var(--space-md) 0;
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }
}

.modern-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .modern-logo {
    font-size: 1.25rem;
    gap: var(--space-sm);
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .modern-logo {
    font-size: 1.1rem;
  }
}

.modern-logo:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.logo-image {
  max-height: 50px;
  height: auto;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.modern-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .modern-nav {
    gap: var(--space-sm);
    width: 100%;
    flex-direction: column;
  }
}

/* ============================================
   🔍 SEARCH BAR
============================================ */
.modern-search {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 300px;
  transition: var(--transition);
}

@media (max-width: 991px) {
  .modern-search {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .modern-search {
    min-width: auto;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
  }
}

.modern-search:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.modern-search input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  flex: 1;
  outline: none;
}

.modern-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.modern-search button {
  background: var(--accent-color);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .modern-search button {
    padding: var(--space-sm) var(--space-sm);
    font-size: 0.9rem;
  }
}

.modern-search button:hover {
  background: var(--primary-light-color);
}

/* ============================================
   🍞 BREADCRUMBS
============================================ */
.breadcrumb-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-medium);
  padding: var(--space-md) 0;
}

.modern-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--surface-dark);
}

.modern-breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.modern-breadcrumbs a:hover {
  color: var(--primary-dark-color);
  text-decoration: underline;
}

/* ============================================
   🎨 MODERN COMPONENTS
============================================ */
.modern-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--surface-medium);
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-color) 100%);
  color: white;
  padding: var(--space-lg);
  font-weight: 600;
  font-size: 1.25rem;
}

.card-body {
  padding: var(--space-xl);
}

.card-footer {
  background: var(--surface-light);
  padding: var(--space-lg);
  border-top: 1px solid var(--surface-medium);
}

/* Card images with fixed size and proper aspect ratio */
.card.h-100 .card-img-top {
  height: 200px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

/* ============================================
   🔲 MODERN BUTTONS
============================================ */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family, var(--font-primary));
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-modern {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary-modern:hover {
  background: var(--primary-dark-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary-modern {
  background: var(--secondary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary-modern:hover {
  background: var(--surface-dark);
  color: white;
}

.btn-outline-modern {
  background: transparent;

  border: 2px solid var(--primary-color);
}

.btn-outline-modern:hover {
  background: var(--primary-color);
  color: white;
}

/* ============================================
   📝 MODERN FORMS
============================================ */
.form-modern {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label-modern {
  font-weight: 600;
  color: var(--surface-dark);
  font-size: 0.875rem;
}

.form-input-modern {
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--surface-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-family, var(--font-primary));
  font-size: 1rem;
  background: var(--surface-white);
  transition: var(--transition);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================
   🚀 HERO SECTION
============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-2xl);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  padding: var(--space-2xl);
  color: white;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  color: var(--homepage-text-color);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--homepage-text-color);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

/* ============================================
   🌊 MODERN FOOTER
============================================ */
.modern-footer {
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
  color: white;
  margin-top: var(--space-2xl);
  position: relative;
}

.footer-content {
  padding: var(--space-2xl) 0;
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--primary-light-color);
}

.footer-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: white;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: white;
  padding-left: var(--space-sm);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-lg);
}

/* ============================================
   📄 CONTENT SECTIONS
============================================ */
.content-section {
  margin-bottom: var(--space-2xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--surface-dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

/* ============================================
   🔤 LETTERS GRID
============================================ */
.letters-grid {
  margin: var(--space-xl) 0;
}

.letters-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--surface-dark);
  margin-bottom: var(--space-lg);
}

.letters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: var(--space-md);
  max-width: 100%;
}

.letter-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
}

.letter-active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-color) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.letter-active:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
  color: white;
  border-color: var(--primary-dark-color);
}

.letter-inactive {
  background: var(--surface-light);
  color: var(--text-muted-color);
  border-color: var(--surface-medium);
  cursor: not-allowed;
  opacity: 0.6;
}

.letter-inactive:hover {
  opacity: 0.4;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .letters-container {
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: var(--space-sm);
  }
  
  .letter-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-color) 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* ============================================
   🎨 SEARCH RESULTS
============================================ */
.search-results-container {

}

.result-item {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--surface-medium);
  transition: var(--transition);
}

.result-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.result-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--surface-dark);
}

.result-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.result-title a:hover {
  color: var(--primary-color);
}

/* ============================================
   🎯 LEGACY BOOTSTRAP OVERRIDES
============================================ */
.bg-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%) !important;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.btn-primary-custom {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  min-height: 50px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  width: 100%;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active {
  background: var(--primary-dark-color) !important;
  border-color: var(--primary-dark-color) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  color: white !important;
}

.bg-secondary-custom {
  background: var(--secondary-color) !important;
}

/* ============================================
   📱 RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
  }
  
  .modern-search {
    min-width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .search-results-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   🎯 UTILITY CLASSES
============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.shadow-modern {
  box-shadow: var(--shadow-md);
}

.rounded-modern {
  border-radius: var(--radius-lg);
}

.transition-smooth {
  transition: var(--transition);
}

/* Simple fade animation only */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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