/* Custom styles for inspo page */

/* Waarom Een Liedje Bestellen Section - uses contact-section class for light theme */

.why-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Occasions carousel - same structure as artists carousel */
.occasions-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.occasions-carousel-container {
    overflow: hidden;
    flex: 1;
    width: 100%;
}

.occasions-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Occasions carousel arrows */
.occasions-carousel-wrapper .carousel-arrow {
    position: relative;
    top: auto;
    transform: none;
    flex-shrink: 0;
}

.occasions-carousel-wrapper .carousel-arrow-left {
    left: auto;
}

.occasions-carousel-wrapper .carousel-arrow-right {
    right: auto;
}

.occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.occasion-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
}

:root[data-theme="dark"] .occasion-card {
    background: #0b0713;
    border-color: rgba(139, 149, 165, 0.15);
}

.occasion-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.occasion-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

:root[data-theme="dark"] .occasion-image-wrapper {
    background: #0a0712;
}

.occasion-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.occasion-icon {
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.occasion-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.occasion-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-cta-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.why-cta-section h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.why-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-feature-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.why-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 1px solid var(--border-color);
}

.why-feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.why-feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-outro {
    text-align: center;
    max-width: 800px;
    margin: 2.5rem auto 0;
}

.why-outro p {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Inline link styling */
.inline-link {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: var(--accent-secondary);
}

/* Preview Hint Section - Under Artist Cards */
.preview-hint-section {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    text-align: center;
}

.preview-hint-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-hint-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.preview-hint-text {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.preview-hint-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.preview-hint-text a {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.preview-hint-text a:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .preview-hint-section {
        padding: 1.25rem 1rem;
        margin-top: 2rem;
    }
    
    .preview-hint-content {
        flex-direction: column;
        text-align: center;
    }
    
    .preview-hint-icon {
        font-size: 1.75rem;
    }
    
    .preview-hint-text {
        font-size: 0.9rem;
    }
}

/* Occasions toggle button - only visible on mobile */
.occasions-toggle {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.occasions-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.occasions-toggle.active svg {
    transform: rotate(180deg);
}

.occasions-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4);
}

@media (max-width: 1024px) {
    .occasion-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .occasions-carousel-wrapper {
        gap: 0.5rem;
    }
    
    .occasions-carousel-wrapper .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .occasions-carousel-wrapper .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .occasion-card {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: calc(100% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .occasions-carousel-wrapper .carousel-arrow {
        width: 32px;
        height: 32px;
    }
    
    .occasion-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .occasions-grid {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .occasions-grid.expanded {
        max-height: 5000px;
    }
    
    .why-outro {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.5s ease;
    }
    
    .why-outro.expanded {
        max-height: 300px;
        opacity: 1;
        margin-top: 2rem;
    }
}

/* Mobile: show occasions by default if JS doesn't load */
.no-js .occasions-grid,
.no-js .why-outro {
    max-height: none !important;
    opacity: 1 !important;
}

.no-js .occasions-toggle {
    display: none !important;
}

/* Floating gift animations */
.floating-gift {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float-gift 20s infinite ease-in-out;
    pointer-events: none;
    user-select: none;
}

.gift-1 { top: 10%; left: 5%; animation-delay: 0s; }
.gift-2 { top: 25%; right: 8%; animation-delay: 2s; }
.gift-3 { top: 45%; left: 10%; animation-delay: 4s; }
.gift-4 { top: 60%; right: 5%; animation-delay: 6s; }
.gift-5 { top: 75%; left: 7%; animation-delay: 8s; }
.gift-6 { top: 15%; right: 12%; animation-delay: 3s; }
.gift-7 { top: 85%; right: 15%; animation-delay: 5s; }
.gift-8 { top: 30%; left: 3%; animation-delay: 7s; }

@keyframes float-gift {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
}

@media (max-width: 768px) {
    .occasions-grid {
        grid-template-columns: 1fr;
    }
    
    .why-feature-item {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }
    
    .why-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Make tier selection boxes more compact */
.pricing-expanded-card {
    padding: 1.25rem !important;
}

.tier-price-expanded {
    margin: 0.5rem 0 !important;
}

.old-price {
    margin-right: 0.25rem !important;
}

.new-price {
    margin-left: 0.1rem !important;
}

.tier-delivery {
    margin: 0.5rem 0 !important;
}

.delivery-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.2rem !important;
}

.old-delivery {
    display: none !important;
}

.new-delivery {
    font-size: 0.85rem !important;
    padding: 0.3rem 0.6rem !important;
}

.tier-features {
    gap: 0.4rem !important;
    margin: 0.6rem 0 !important;
}

.tier-features li {
    padding: 0.35rem 0 !important;
    font-size: 0.85rem !important;
}

/* Feature Info Flip Card Styling */
.feature-flip-container {
    perspective: 1000px;
    position: relative;
    min-height: 2.5rem;
}

.feature-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.feature-flip-container.flipped .feature-flip-inner {
    transform: rotateX(180deg);
}

.feature-flip-front,
.feature-flip-back {
    position: absolute;
    width: 100%;
    min-height: 2.5rem;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
}

.feature-flip-front {
    background: transparent;
}

.feature-flip-back {
    transform: rotateX(180deg);
    padding: 0.75rem 1rem;
    color: white;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Default gold fallback */
}

/* Tier-specific flip card colors - MUST come after default to override */
.pricing-expanded-card[data-tier="silver"] .feature-flip-back,
.tier-silver .feature-flip-back {
    background: linear-gradient(135deg, #94a3b8, #64748b) !important; /* Silver */
}

.pricing-expanded-card[data-tier="gold"] .feature-flip-back,
.tier-gold .feature-flip-back {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important; /* Gold */
}

.pricing-expanded-card[data-tier="diamond"] .feature-flip-back,
.tier-diamond .feature-flip-back {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important; /* Diamond/Blue */
}

.flip-back-text {
    font-size: 0.8rem;
    line-height: 1.4;
    flex: 1;
}

.flip-back-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.flip-back-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Hide default tooltip on flip containers */
.feature-flip-container .feature-info-btn[data-tooltip]:hover::after,
.feature-flip-container .feature-info-btn[data-tooltip]:hover::before {
    display: none !important;
}

/* Adjust container height when flipped */
.feature-flip-container.flipped {
    min-height: 4rem;
}

.feature-flip-container.flipped .feature-flip-back {
    position: relative;
}

/* Fix mobile tier selection z-index and popup overflow */
@media (max-width: 768px) {
    /* Hide disabled features on mobile - only show included features */
    .tier-features li.feature-disabled {
        display: none !important;
    }
    
    /* Fix tier cards appearing above header and theme toggle */
    .pricing-expanded-card {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Ensure header stays on top */
    .navbar {
        z-index: 1000 !important;
    }
    
    /* Ensure theme toggle stays on top */
    .floating-theme-toggle {
        z-index: 1001 !important;
    }
    
    /* Fix tier info popup overflow and positioning */
    .tier-info-popup {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 400px !important;
        min-height: 200px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        padding: 1.5rem !important;
        z-index: 10000 !important;
        margin: 0 !important;
        background: var(--bg-primary) !important;
        border: 2px solid var(--accent-primary) !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        opacity: 1 !important;
    }
    
    /* Force backdrop */
    .tier-info-popup::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: -1;
    }
    
    .tier-info-content h3 {
        font-size: 1.1rem !important;
        word-wrap: break-word !important;
    }
    
    .tier-info-content p,
    .tier-info-content ul li {
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .tier-info-content ul {
        padding-left: 1.25rem !important;
    }
    
    /* Ensure close button is always visible */
    .tier-info-close {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: var(--bg-primary) !important;
        border-radius: 50% !important;
        padding: 0.25rem !important;
    }
    
    /* Fix tier info content positioning */
    .tier-info-content {
        background: var(--bg-secondary) !important;
        padding: 0.5rem !important;
    }
    
    /* Ensure all tier info popups have solid backgrounds, never transparent */
    .tier-info-popup,
    .tier-info-popup[style*="display: block"],
    .tier-info-popup.visible {
        background: var(--bg-secondary) !important;
        opacity: 1 !important;
    }
    
    /* Fix feature info button tooltips - FORCE SOLID BACKGROUND ALWAYS */
    .feature-info-btn[data-tooltip]:hover::after {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85vw !important;
        max-width: 350px !important;
        white-space: normal !important;
        text-align: left !important;
        padding: 0.75rem !important;
        border-radius: 8px !important;
        z-index: 100000 !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        opacity: 1 !important;
        min-height: 60px !important;
    }
    
    /* FORCE all disabled tooltips to have same solid background */
    .tier-features li.feature-disabled .feature-info-btn[data-tooltip]:hover::after {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        opacity: 1 !important;
    }
}

/* Additional compact adjustments for tier cards */
.tier-header-expanded {
    padding-bottom: 0.6rem !important;
    margin-bottom: 0.6rem !important;
}

.tier-name-expanded {
    font-size: 1.2rem !important;
}

.tier-includes {
    margin: 0.5rem 0 !important;
    gap: 0.4rem !important;
}

.include-item {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

.btn-details-link {
    margin-top: 0.5rem !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
}
