/* ==========================================================================
   Site Header & Auth Navigation Styles
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-navy, #0b172a);
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main, #334155);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #e11d48; /* Berry pink hover matching our candy theme */
}

.auth-links-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Plain Login Text Link */
.btn-auth-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-navy, #0b172a);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.btn-auth-link:hover {
    color: #e11d48;
}

/* Register Action Button */
.btn-auth-primary {
    background-color: #e11d48;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-auth-primary:hover {
    background-color: #be185d;
    transform: translateY(-1px);
}

.btn-auth-secondary {
    background-color: #f1f5f9;
    color: var(--primary-navy, #0b172a);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-auth-secondary:hover {
    background-color: #e2e8f0;
}

/* Responsive collapse for mobile headers */
@media (max-width: 768px) {
    .header-nav {
        display: none; /* Can be expanded into a mobile hamburger menu later */
    }
}

/* ==========================================================================
   Candy Store Landing Page Styles
   ========================================================================== */

.candy-hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem 0 3rem 0;
}

.candy-hero-content {
    flex: 1;
    text-align: left;
}

.candy-badge {
    display: inline-block;
    background-color: #fce7f3;
    color: #be185d;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.candy-hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    color: var(--primary-navy, #0b172a);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.candy-hero-content p {
    font-size: 1.125rem;
    color: var(--text-main, #334155);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.candy-hero-buttons {
    display: flex;
    gap: 1rem;
}

.candy-btn-primary,
.candy-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candy-btn-primary {
    background-color: #e11d48; /* Vibrant berry candy pink */
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.candy-btn-primary:hover {
    background-color: #be185d;
    transform: translateY(-2px);
}

.candy-btn-secondary {
    background-color: #ffffff;
    color: var(--primary-navy, #0b172a);
    border: 1px solid var(--border-color, #e2e8f0);
}

.candy-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.candy-hero-image-card {
    flex: 1;
    display: flex;
    justify-content: center;
}

.candy-hero-image-card img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(11, 23, 42, 0.12);
    object-fit: cover;
}

/* Feature Highlights Grid */
.candy-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 3rem;
    margin-top: 2rem;
    text-align: left;
}

.highlight-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy, #0b172a);
    margin-bottom: 0.5srem;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--text-main, #334155);
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .candy-hero-section {
        flex-direction: column;
        text-align: center;
    }
    .candy-hero-content {
        text-align: center;
    }
    .candy-hero-buttons {
        justify-content: center;
    }
    .candy-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Site Footer Styles
   ========================================================================== */

.site-footer {
    background-color: var(--primary-navy, #0b172a);
    color: #cbd5e1;
    font-family: var(--font-sans);
    padding: 4rem 2rem 1.5rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-tagline, .footer-subtext {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

/* Newsletter Form inside Footer */
.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-newsletter-form input::placeholder {
    color: #64748b;
}

.footer-newsletter-form button {
    background-color: #e11d48;
    color: #ffffff;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.footer-newsletter-form button:hover {
    background-color: #be185d;
}

/* Footer Bottom Bar */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Responsive collapse for smaller screens */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
