/**
 * Minimalist Design Stylesheet
 * Inspired by clean, modern aesthetics
 */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2d3748;
    --color-secondary: #4a5568;
    --color-accent: #d4a574;
    --color-text: #1a202c;
    --color-text-light: #718096;
    --color-background: #ffffff;
    --color-background-light: #f7fafc;
    --color-border: #e2e8f0;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --max-width: 1200px;
    --spacing: 1rem;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Images in content areas (excluding card images) */
.content img:not(.blog-card-image):not(.practice-card-image):not(.product-image),
.page-content img:not(.blog-card-image):not(.practice-card-image):not(.product-image),
article img:not(.blog-card-image):not(.practice-card-image):not(.product-image),
.blog-content img:not(.blog-card-image):not(.practice-card-image):not(.product-image) {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Links in content areas (exclude buttons and card links) */
.content a:not(.btn):not([class*="button"]):not([class*="-link"]),
.page-content a:not(.btn):not([class*="button"]):not([class*="-link"]),
article a:not(.btn):not([class*="button"]):not([class*="-link"]),
.blog-content a:not(.btn):not([class*="button"]):not([class*="-link"]) {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.content a:not(.btn):not([class*="button"]):not([class*="-link"]):hover,
.page-content a:not(.btn):not([class*="button"]):not([class*="-link"]):hover,
article a:not(.btn):not([class*="button"]):not([class*="-link"]):hover,
.blog-content a:not(.btn):not([class*="button"]):not([class*="-link"]):hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

/* Responsive videos in content areas */
.content iframe,
.page-content iframe,
article iframe,
.blog-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Responsive video wrapper for 16:9 aspect ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--color-background);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Header Top Bar */
.header-top {
    background: var(--color-background-light);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
    opacity: 1;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Auth Links */
.header-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-link {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--color-accent);
}

/* Header Main Navigation */
.header-main {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-accent);
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--color-accent);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0.5rem;
}

.hamburger-icon {
    display: inline-block;
    font-size: 1.8rem;
    transform: scaleX(1.3);
}

.close-icon {
    display: none;
    font-size: 1.8rem;
}

body.menu-open .hamburger-icon {
    display: none;
}

body.menu-open .close-icon {
    display: block;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-link {
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.lang-link:hover {
    color: var(--color-accent);
}

.lang-link.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Nav auth links - hidden by default, shown when scrolled */
.nav-auth-scrolled {
    display: none;
    gap: 2rem;
    align-items: center;
}

/* Header scrolled state - hide top bar with fade */
.header-scrolled .header-top {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-bottom: none;
}

.header-scrolled .header-main {
    padding: 0.5rem 0;
}

.header-scrolled .logo {
    font-size: 1.25rem;
}

.header-scrolled .nav {
    gap: 1.5rem;
}

.header-scrolled .nav a {
    font-size: 0.9rem;
}

/* Show auth links in nav when scrolled */
.header-scrolled .nav-auth-scrolled {
    display: flex;
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: var(--color-background-light);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Hero with background image */
.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}

/* Overlay for better text readability - color and opacity set dynamically */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* Background color and opacity are set via inline styles from admin settings */
}

/* Hero content above overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Text colors when hero has image */
.hero-with-image .hero-content h1,
.hero-with-image .hero-content p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Hero journey link with elegant hover effect */
.hero-journey-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.hero-journey-link:hover {
    color: inherit;
    text-decoration-color: var(--color-accent);
}

.hero-with-image .hero-journey-link,
.hero-with-image .hero-journey-link:hover {
    color: #ffffff;
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero,
    .hero-with-image {
        min-height: 350px;
    }
}

/* Love Shades Section */
.love-shades {
    padding: 4rem 0;
}

.love-shades h2 {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 2rem;
}

.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.love-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.love-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.love-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

/* Sun Diagram */
.sun-diagram {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 3rem auto;
    display: none;
}

.sun-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.4);
}

.sun-center span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.sun-ray {
    position: absolute;
    width: 0;
    height: 0;
}

.sun-ray a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sun-ray a:hover {
    transform: scale(1.1);
}

.sun-ray .ray-title {
    position: absolute;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}

.sun-ray a:hover .ray-title {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

/* Arrow triangles pointing to center */
.sun-ray::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Ray 1: Top */
.sun-ray-1 { top: 50%; left: 50%; transform: translate(-50%, -250px); }
.sun-ray-1 .ray-title { transform: translate(-50%, -30px); left: 0; }
.sun-ray-1::before { border-width: 40px 15px 0 15px; border-color: var(--color-accent) transparent transparent transparent; top: 30px; left: -15px; }

/* Ray 2: Top-Right */
.sun-ray-2 { top: 50%; left: 50%; transform: translate(130px, -180px); }
.sun-ray-2 .ray-title { transform: translate(10px, -20px); }
.sun-ray-2::before { border-width: 35px 15px 0 15px; border-color: var(--color-accent) transparent transparent transparent; transform: rotate(45deg); top: 20px; left: -15px; }

/* Ray 3: Right */
.sun-ray-3 { top: 50%; left: 50%; transform: translate(180px, 0); }
.sun-ray-3 .ray-title { transform: translate(30px, -50%); top: 0; }
.sun-ray-3::before { border-width: 15px 40px 15px 0; border-color: transparent var(--color-accent) transparent transparent; left: -40px; top: -15px; }

/* Ray 4: Bottom-Right */
.sun-ray-4 { top: 50%; left: 50%; transform: translate(130px, 180px); }
.sun-ray-4 .ray-title { transform: translate(10px, 0); }
.sun-ray-4::before { border-width: 0 15px 35px 15px; border-color: transparent transparent var(--color-accent) transparent; transform: rotate(-45deg); bottom: 20px; left: -15px; }

/* Ray 5: Bottom */
.sun-ray-5 { top: 50%; left: 50%; transform: translate(-50%, 220px); }
.sun-ray-5 .ray-title { transform: translate(-50%, 10px); left: 0; }
.sun-ray-5::before { border-width: 0 15px 40px 15px; border-color: transparent transparent var(--color-accent) transparent; bottom: 30px; left: -15px; }

/* Ray 6: Bottom-Left - mirror of Ray 4 */
.sun-ray-6 { top: 50%; left: 50%; transform: translate(-130px, 180px); }
.sun-ray-6 .ray-title { transform: translate(-100%, 0); left: -10px; }
.sun-ray-6::before { border-width: 0 15px 35px 15px; border-color: transparent transparent var(--color-accent) transparent; transform: rotate(45deg); bottom: 20px; right: -15px; left: auto; }

/* Ray 7: Left - mirror of Ray 3 */
.sun-ray-7 { top: 50%; left: 50%; transform: translate(-180px, 0); }
.sun-ray-7 .ray-title { transform: translate(-100%, -50%); top: 0; left: -30px; }
.sun-ray-7::before { border-width: 15px 0 15px 40px; border-color: transparent transparent transparent var(--color-accent); right: -40px; top: -15px; left: auto; }

/* Ray 8: Top-Left - mirror of Ray 2 */
.sun-ray-8 { top: 50%; left: 50%; transform: translate(-130px, -180px); }
.sun-ray-8 .ray-title { transform: translate(-100%, -20px); left: -10px; }
.sun-ray-8::before { border-width: 35px 15px 0 15px; border-color: var(--color-accent) transparent transparent transparent; transform: rotate(-45deg); top: 20px; right: -15px; left: auto; }

/* Show sun diagram on larger screens */
@media (min-width: 1024px) {
    .sun-diagram {
        display: block;
    }

    .love-grid {
        display: none;
    }
}

/* Quick Links Section */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
}

.quick-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.2);
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-link-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
}

.quick-link:hover .quick-link-text {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .quick-links {
        gap: 0.75rem;
    }

    .quick-link {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }

    .quick-link-icon {
        font-size: 1.5rem;
    }

    .quick-link-text {
        font-size: 0.85rem;
    }
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-background-light);
    color: var(--color-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Content Section */
.content {
    padding: 4rem 0;
}

.content ul,
.content ol,
.page-content ul,
.page-content ol,
.product-content ul,
.product-content ol {
    padding-left: 2.5rem;
    margin-left: 0;
    margin-bottom: 1rem;
}

.content li,
.page-content li,
.product-content li {
    margin-bottom: 0.5rem;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image-link {
    display: block;
    text-decoration: none;
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    object-fit: cover;
    background: var(--color-background-light);
    margin: 0;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.blog-card-image-link:hover .blog-card-image,
.blog-card-image-link:hover .card-image-placeholder {
    opacity: 0.85;
}

.blog-card-excerpt-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-excerpt-link:hover .blog-card-excerpt {
    color: var(--color-primary);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-card-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.premium-badge {
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.free-badge {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.practice-badge {
    background: #8b5cf6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Card image wrapper for premium badge positioning */
.blog-card-image-wrapper,
.practice-card-image-wrapper,
.product-card-image-wrapper {
    position: relative;
}

/* Premium badge on cards */
.card-premium-badge,
.card-premium-badge:hover,
.card-premium-badge:visited,
.card-premium-badge:active {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0891b2;
    color: white !important;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

/* Card Image Placeholder */
.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary-light, #f0e6ff) 0%, var(--color-background-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 3rem;
    margin: 0;
    border-radius: 0;
}

/* Practice Grid */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.practice-card {
    background: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.practice-card-image-link {
    display: block;
    text-decoration: none;
}

.practice-card-image {
    display: block;
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    object-fit: cover;
    background: var(--color-background-light);
    margin: 0;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.practice-card-image-link:hover .practice-card-image,
.practice-card-image-link:hover .card-image-placeholder {
    opacity: 0.85;
}

.practice-card-excerpt-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.practice-card-excerpt-link:hover .practice-card-excerpt {
    color: var(--color-primary);
}

.practice-card-content {
    padding: 1.5rem;
}

.practice-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.practice-card-title a {
    color: inherit;
    text-decoration: none;
}

.practice-card-title a:hover {
    color: var(--color-primary);
}

.practice-card-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.practice-card-meta {
    margin-bottom: 1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    display: block;
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    object-fit: cover;
    background: var(--color-background-light);
    margin: 0;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.product-image-link:hover .product-image,
.product-image-link:hover .card-image-placeholder {
    opacity: 0.85;
}

.product-description-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-description-link:hover .product-description {
    color: var(--color-primary);
}

/* Product detail page content (full width) */
.content > .container > .product-content,
.content-narrow .product-content {
    padding: 0;
    margin-top: 1rem;
}

/* Product card content (in grid) - must come after to override */
.product-card .product-content {
    padding: 1.5rem;
    margin-top: 0;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.form-feedback.valid {
    color: #28a745;
}

.form-feedback.invalid {
    color: #dc3545;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.form-check span {
    font-size: 1rem;
    color: var(--color-text);
}

.form-check:hover input[type="checkbox"] {
    opacity: 0.8;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-light);
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--color-accent);
}

.password-toggle:focus {
    outline: none;
}

/* Live Search */
.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.search-box input::placeholder {
    color: var(--color-text-light);
}

.search-loading {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-light);
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--color-text-light);
    background: var(--color-background-light);
    border-radius: 8px;
}

#search-results {
    margin-top: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo:hover {
    color: var(--color-accent) !important;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-legal .separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-secondary);
    background: var(--color-background);
    transition: all 0.2s ease;
}

.pagination-arrow:hover:not(.disabled) {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pagination-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* Subscription Plans */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    border-width: 3px;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* Responsive Design - Mobile menu at 1024px */
@media (max-width: 1024px) {
    /* Two-row header mobile styles */
    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .header-auth {
        gap: 0.5rem;
    }

    .auth-link {
        font-size: 0.8rem;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: white;
        padding: 2.5rem 2rem 2rem;
        z-index: 999;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-y: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav.active a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1.2rem;
    }

    .nav.active a:last-child {
        border-bottom: none;
    }

    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1001;
    }

    /* Position close icon inside the menu */
    body.menu-open .nav-mobile-toggle {
        position: fixed;
        top: 0.75rem;
        right: 1.5rem;
    }

    /* Always show auth links in mobile menu */
    .nav.active .nav-auth-scrolled {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav.active .nav-auth-scrolled a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1.2rem;
    }

    .header-main {
        position: relative;
        padding: 0.25rem 0;
    }

    .header-scrolled .header-main {
        padding: 0.1rem 0;
    }

    .love-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .language-switcher {
        gap: 0.15rem;
    }

    .lang-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    .auth-link {
        font-size: 0.75rem;
    }

    .love-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 2rem 0;
    }

    .content ul,
    .content ol,
    .page-content ul,
    .page-content ol,
    .product-content ul,
    .product-content ol {
        padding-left: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-light);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
