/* Baladella Custom Styles - Bootstrap 5 Overrides */
/* Design Rules: Simplicity, Clarity, Consistency, Trust */

:root {
  /* Baladella Color Palette */
  --primary-color: #FF7A1F;      /* Warm orange - primary brand color */
  --secondary-color: #FFA050;    /* Light orange - soft complement */
  --accent-color: #FFD966;       /* Soft yellow - gentle accent */
  --dark-color: #2C3E50;         /* Dark grey-blue - text and dark elements */
  --white: #FFFFFF;              /* Pure white */
  --light-bg: #F8F8F8;           /* Very light grey for alternating sections */
  --text-color: #333333;         /* Main text color */
  --text-muted: #999999;         /* Muted text */
  --border-color: #E0E0E0;       /* Light border */

  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--white);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--dark-color);
}

h3 {
  font-size: 1.5rem;
}

/* Navbar - Clean & Professional */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color) !important;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.25s ease;
  margin-left: 1.5rem;
}

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

/* Search Bar */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  width: 100%;
}

@media (min-width: 992px) {
  .search-box {
    margin-top: 0;
    width: 220px;
  }
}

.search-input {
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 0.65rem 2.75rem 0.65rem 1.25rem;
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
  width: 100%;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 122, 31, 0.1);
  outline: none;
}

.search-icon-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.search-icon-btn:hover {
  background-color: #E8650A;
}

/* Buttons - Rounded & Inviting */
.btn {
  border-radius: 25px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.85rem 2.25rem;
}

.btn-primary:hover {
  background-color: #E8650A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 122, 31, 0.25);
}

.btn-light {
  background-color: var(--white);
  color: var(--dark-color);
  border: 2px solid var(--primary-color);
}

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

.btn-outline-light {
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

/* Cards - Simple & Clean */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  overflow: hidden;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  border-radius: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: 200px;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Category Cards (hub pages) */
.category-card {
  padding: 2rem 1.5rem;
  cursor: pointer;
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  color: var(--white);
}

.category-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.category-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Badges/Categories */
.badge {
  background-color: var(--accent-color);
  color: var(--dark-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Hero Section - Welcoming & Clear */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title {
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.35rem;
  margin-bottom: 0;
  opacity: 0.95;
  line-height: 1.7;
}

/* Section Background Alternation */
section {
  padding: 3rem 0;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

/* Content Sections */
.content-section {
  padding: 2rem 0;
}

.content-section h2 {
  color: var(--dark-color);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.content-section p.text-muted {
  font-size: 1.05rem;
  color: var(--text-color) !important;
}

/* Trust/Features Section */
.trust-section {
  padding: 3rem 0;
  background-color: var(--light-bg);
}

.trust-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

.trust-item {
  text-align: center;
  padding: 2rem;
}

.trust-item h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.trust-item p {
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 3px solid var(--primary-color);
}

footer h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

footer li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

footer .text-center {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Detail Pages */
.detail-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.detail-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.detail-meta {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Media Players */
.media-container {
  background-color: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.media-container iframe {
  border-radius: 12px;
  border: none;
}

/* Related Content Section */
.related-section {
  background-color: var(--light-bg);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
}

.related-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Search Results */
.search-results {
  margin: 2rem 0;
}

.search-result-item {
  background-color: var(--white);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.search-result-item:hover {
  box-shadow: 0 4px 12px rgba(255, 122, 31, 0.15);
  transform: translateX(3px);
}

.search-result-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.search-result-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-result-category {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--dark-color);
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }

  .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }

  .card-img-top {
    height: 150px;
  }

  .trust-item {
    padding: 1.5rem;
  }

  .detail-header {
    padding: 2rem 0;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 2rem 0;
  }
}

/* Accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Logo sizing */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 2rem;
}

.navbar-brand img {
  height: 45px;
  width: auto;
}
