/**
 * Just Chill Creamery - Custom CSS
 * Additional styles and overrides
 *
 * @package JustChillCreamery
 */

/* ==========================================================================
   ADDITIONAL HEADER STYLES
   ========================================================================== */

.site-header.scrolled {
    box-shadow: var(--shadow-medium);
}

.site-header.header-hidden {
    transform: translateY(-100%);
    transition: transform var(--transition-medium);
}

.site-header {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

/* Mobile menu hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   LOGO PLACEHOLDER STYLES
   ========================================================================== */

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--jcc-arctic-blue), var(--jcc-arctic-blue-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.logo-penguin {
    font-size: 2rem;
}

/* ==========================================================================
   ENHANCED BUTTON EFFECTS
   ========================================================================== */

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   CARD HOVER EFFECTS
   ========================================================================== */

.menu-category,
.party-package,
.activity-card,
.flavor-card,
.location-card,
.review-card,
.printable-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

/* ==========================================================================
   FORM ENHANCEMENTS
   ========================================================================== */

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-group label {
    font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--jcc-penguin-gray);
    opacity: 0.7;
}

/* ==========================================================================
   JOKE BOX ENHANCEMENTS
   ========================================================================== */

.joke-box {
    transition: all var(--transition-medium);
}

.joke-box.revealed {
    background: linear-gradient(135deg, var(--jcc-vanilla), var(--jcc-strawberry));
}

.joke-box.revealed::before {
    animation: bounce 1s ease-in-out;
}

/* ==========================================================================
   REVIEWS CAROUSEL STYLING
   ========================================================================== */

.reviews-carousel {
    scrollbar-width: thin;
    scrollbar-color: var(--jcc-arctic-blue) var(--jcc-ice);
}

.reviews-carousel::-webkit-scrollbar {
    height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
    background: var(--jcc-ice);
    border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--jcc-arctic-blue);
    border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--jcc-arctic-blue-dark);
}

/* ==========================================================================
   FLAVOR SHOWCASE HORIZONTAL SCROLL
   ========================================================================== */

.flavor-showcase {
    scrollbar-width: thin;
    scrollbar-color: var(--jcc-penguin-orange) var(--jcc-cream);
}

.flavor-showcase::-webkit-scrollbar {
    height: 8px;
}

.flavor-showcase::-webkit-scrollbar-track {
    background: var(--jcc-cream);
    border-radius: 4px;
}

.flavor-showcase::-webkit-scrollbar-thumb {
    background: var(--jcc-penguin-orange);
    border-radius: 4px;
}

/* ==========================================================================
   SUNDAE BUILDER STYLES
   ========================================================================== */

.sundae-builder .option-btn {
    min-width: 80px;
    font-size: 0.9rem;
}

.sundae-builder .option-btn.selected {
    transform: scale(1.05);
    font-weight: 700;
}

#sundae-display {
    transition: all var(--transition-medium);
}

/* ==========================================================================
   QUIZ STYLES
   ========================================================================== */

.quiz-option {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-xs);
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
}

.quiz-option:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   GALLERY ENHANCEMENTS
   ========================================================================== */

.gallery-item {
    transition: all var(--transition-medium);
}

.gallery-item:hover {
    z-index: 2;
    transform: scale(1.05);
}

/* ==========================================================================
   NEWSLETTER FORM
   ========================================================================== */

.newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.95);
}

.newsletter-form input[type="email"]:focus {
    background: var(--jcc-snow-white);
}

/* ==========================================================================
   LOCATION CARDS
   ========================================================================== */

.location-card:hover .location-map {
    filter: brightness(1.1);
}

/* ==========================================================================
   PARTY PACKAGE HOVER
   ========================================================================== */

.party-package:hover .party-package-header {
    filter: brightness(1.1);
}

/* ==========================================================================
   SEASONAL BADGE
   ========================================================================== */

.seasonal-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--jcc-penguin-orange), var(--jcc-strawberry));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--jcc-ice);
    border-top-color: var(--jcc-arctic-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   SELECTION HIGHLIGHTING
   ========================================================================== */

::selection {
    background: var(--jcc-arctic-blue);
    color: white;
}

::-moz-selection {
    background: var(--jcc-arctic-blue);
    color: white;
}

/* ==========================================================================
   FOCUS VISIBLE ENHANCEMENTS
   ========================================================================== */

.btn:focus-visible,
.menu-category:focus-visible,
a:focus-visible {
    outline: 3px solid var(--jcc-penguin-orange);
    outline-offset: 3px;
}

/* ==========================================================================
   SKIP LINK
   ========================================================================== */

.skip-link:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
}

/* ==========================================================================
   PAGE TRANSITION EFFECTS
   ========================================================================== */

.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFF8F0'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* ==========================================================================
   SOCIAL LINK HOVER EFFECTS
   ========================================================================== */

.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.social-link:hover::before {
    opacity: 1;
}

/* ==========================================================================
   MENU ITEM STYLING
   ========================================================================== */

.menu-item-description {
    font-style: italic;
}

.menu-item:hover .menu-item-name {
    color: var(--jcc-arctic-blue-dark);
}

/* ==========================================================================
   FAQ ACCORDION STYLE
   ========================================================================== */

.faq-item {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   FOOTER STYLING ENHANCEMENTS
   ========================================================================== */

.site-footer ul li {
    padding: var(--spacing-xs) 0;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   PRINT STYLES EXTENSION
   ========================================================================== */

@media print {
    .printable-card {
        break-inside: avoid;
    }

    .no-print {
        display: none !important;
    }

    a[href]::after {
        content: none !important;
    }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --jcc-arctic-blue: #008B8B;
        --jcc-penguin-orange: #D84315;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   DARK MODE PREPARATION (Optional future feature)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if desired */
    /* Currently keeping light theme for ice cream shop branding */
}
