/* I Forever Love You - Custom Styles
   Bootstrap 5 website with dark blue, silver, white color scheme (60-30-10 rule)
   60% Dark Blue, 30% Silver, 10% White
*/

/* Color Variables */
:root {
  /* Primary Colors - 60% Dark Blue */
  --primary-color: #1e3a5f; /* Deep navy blue */
  --primary-dark: #152a42;
  --primary-light: #2a4b73;
  
  /* Secondary Colors - 30% Silver */
  --secondary-color: #8c9dad; /* Silver gray */
  --secondary-dark: #6b7888;
  --secondary-light: #b8c4d1;
  
  /* Accent Colors - 10% White and highlights */
  --accent-color: #c9a96e; /* Warm gold accent */
  --white-color: #ffffff;
  --light-color: #f8f9fa;
  
  /* Text Colors */
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  
  /* Additional Utility Colors */
  --border-color: #dee2e6;
  --shadow-color: rgba(30, 58, 95, 0.15);
}

/* Bootstrap Variable Overrides */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-dark);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #b8965f;
  border-color: #b8965f;
  color: var(--text-dark);
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Navigation Styles */
.navbar {
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Active state in dropdown: force white text and icon */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item.active:focus,
.dropdown-menu .dropdown-item.active:hover {
  color: var(--white-color) !important;
  background-color: var(--primary-color) !important;
}

/* Make inline SVG and icon within active item white */
.dropdown-menu .dropdown-item.active svg,
.dropdown-menu .dropdown-item.active i {
  color: var(--white-color) !important;
  fill: var(--white-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  min-height: 100vh;
  padding-top: 80px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" font-family="Arial" font-size="12" fill="rgba(255,255,255,0.03)" text-anchor="middle">♥</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
  opacity: 0.5;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  position: relative;
  z-index: 2;
}

.hero-images {
  position: relative;
  z-index: 2;
}

.hero-image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-image-placeholder:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.hero-image-placeholder i {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.hero-image-placeholder small {
  display: block;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Category Cards */
.category-card {
  background: var(--white-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.category-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-light);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.category-card h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.category-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Theme Highlights */
.theme-highlights {
  background-color: var(--light-color);
}

.theme-card {
  background: var(--white-color);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.theme-icon {
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.theme-card h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.theme-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1a26 100%);
  color: var(--text-light);
}

.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* I-F-L-Y lowercase helpers */
/* Usage options:
   - Wrap the token in an element with `text-ifly` to force lowercase.
   - Or add `ifly-scope` on a parent and `text-ifly` on children containing the token.
   These use !important to overrule any upstream text-transform rules.
*/
.text-ifly { text-transform: lowercase !important; font-variant-caps: normal !important; }
.ifly-scope .text-ifly { text-transform: lowercase !important; font-variant-caps: normal !important; }

/* Ensure lowercase utility always wins */
.text-lowercase { text-transform: lowercase !important; font-variant-caps: normal !important; }

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-images {
    margin-top: 3rem;
  }
  
  .category-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .category-card {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-hover {
  transition: all 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

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