/**
 * OLAMI Master Manager — Event Card Styles
 * File: assets/css/event-cards.css
 * Extracted from events.css in Phase 21A (v428)
 *
 * Contains: Program cards, promo carousel, event card layouts (4 blocks from event-cards.php)
 */

/* === INLINE STYLES FROM event-cards-inline.css === */
/**
 * Extracted Inline Styles → temp/event-cards-inline.css
 * Generated: 2026-02-07 20:48
 * Blocks: 4
 */


/* Source: includes/event-cards.php line 184 (block 1/4) */
.olami-prog-card-v2 {
        position: relative;
        width: 100%;
        min-height: 200px; /* Credit card ratio-ish */
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 25px;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        perspective: 1000px;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    .olami-prog-card-v2:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    }
    .pc-bg {
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .pc-texture {
        position: absolute;
        inset: 0;
        z-index: 2;
        background-image: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'1\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    }
    .pc-shine {
        position: absolute;
        inset: 0;
        z-index: 3;
        background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
        pointer-events: none;
    }
    .pc-content {
        position: relative;
        z-index: 10;
        padding: 25px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 200px; /* Ensure content spacing */
    }
    .pc-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .pc-badge {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        opacity: 0.7;
        text-transform: uppercase;
        margin-bottom: 6px;
    }
    .pc-title {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }
    .pc-icon-badge {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #FFD700, #FDB931);
        border: 1px solid rgba(255,255,255,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        font-size: 18px;
    }
    .pc-footer {
        margin-top: auto;
    }
    .pc-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 12px;
    }
    .pc-label {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.7;
        margin-bottom: 2px;
    }
    .pc-date-val {
        font-size: 14px;
        font-weight: 700;
    }
    .pc-progress-num {
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
    }
    .pc-total {
        font-size: 14px;
        opacity: 0.7;
        color: inherit;
        font-weight: 600;
        margin-left: 2px;
    }
    .pc-progress-track {
        height: 6px;
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
        overflow: hidden;
    }
    .pc-progress-fill {
        height: 100%;
        border-radius: 3px;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    }


/* Source: includes/event-cards.php line 573 (block 2/4) */
.om-day-option:hover { background:rgba(255,255,255,0.1); border-color:var(--card-accent); }
                        .om-day-option:has(input:checked) { background:rgba(var(--card-accent-rgb, 212,175,55), 0.2); border-color:var(--card-accent); }


/* Source: includes/event-cards.php line 694 (block 3/4) */
/* --- MASTER CARD THEME --- */
    /* Per-card CSS variables are set inline in event-cards.php (dynamic per event) */

    /* Animation */
    .olami-card-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 105%;
        height: 105%;
        background: linear-gradient(45deg, var(--card-secondary), var(--card-accent), var(--card-secondary));
        filter: blur(50px);
        opacity: var(--shine-opacity);
        z-index: -1;
        border-radius: 30px;
        transition: opacity 0.5s ease;
        animation: om-breathe 6s infinite alternate;
    }

    @keyframes om-breathe {
        0% { opacity: calc(var(--shine-opacity) * 0.8); transform: translate(-50%, -50%) scale(0.98); }
        100% { opacity: calc(var(--shine-opacity) * 1.2); transform: translate(-50%, -50%) scale(1.02); }
    }

    /* The Card Itself - 15% smaller */
    .olami-master-card {
        background: var(--dark-bg); /* Hard Fallback */
        background: var(--card-bg-dark); /* User Defined BG */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 3px solid var(--card-accent);
        border-radius: 18px;
        padding: 30px 34px;
        text-align: center;
        box-shadow: 0 18px 45px rgba(0,0,0,0.5);
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
        color: var(--text-body);
        
        /* Layout Fixes - 15% smaller */
        width: 100%;
        max-width: 765px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .olami-master-card:hover {
        transform: translateY(-5px);
    }

    /* Decorative "Shine" Line */
    .olami-master-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
        transform: skewX(-25deg);
        transition: 0.5s;
    }

    .olami-master-card:hover::before {
        left: 150%;
        transition: 0.7s ease-in-out;
    }

    /* Typography */
    .om-tagline {
        color: var(--card-accent);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        font-weight: 700;
        margin-bottom: 10px;
        display: inline-block;
        background: rgba(255,255,255,0.05);
        padding: 5px 12px;
        border-radius: 50px;
        border: 1px solid var(--card-accent);
    }

    .om-title {
        font-size: 48px; /* Base size - JS will shrink if needed */
        color: var(--text-title);
        margin: 0 0 10px 0;
        font-weight: 800;
        line-height: 1.1;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .om-subtitle {
        font-size: 1.2rem;
        color: var(--text-body);
        opacity: 0.8;
        font-weight: 300;
        margin-bottom: 10px;
    }
    
    .om-description {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 10px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        /* Fixed 2-line height with scroll */
        height: 2.85em; /* Exactly 2 lines (line-height 1.5 * 2 = 3, slightly less for visual) */
        min-height: 2.85em;
        max-height: 2.85em;
        overflow-y: auto;
        overflow-x: hidden;
        /* Thin scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }
    
    .om-description::-webkit-scrollbar {
        width: 4px;
    }
    
    .om-description::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .om-description::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
    
    .om-description::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.5);
    }

    /* Info Grid (Date/Loc/Price) */
    .om-info-grid {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .om-info-item {
        padding: 0 25px;
        position: relative;
        text-align: center;
    }

    /* Dividers between info items */
    .om-info-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        height: 20px;
        width: 1px;
        background: rgba(255,255,255,0.2);
    }

    .om-label {
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-body);
        opacity: 0.6;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .om-value {
        display: block;
        font-size: 1.1rem;
        color: var(--text-body);
        font-weight: 600;
    }

    .om-value.highlight {
        color: var(--card-accent);
    }

    /* CTA Section */
    .om-cta-area {
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
        padding: 15px;
        border: 1px dashed rgba(255,255,255,0.1);
    }

    /* Button Style */
    .om-button {
        display: inline-block;
        background: var(--card-accent);
        color: #000;
        padding: 12px 40px;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 5px;
        transition: 0.3s;
        font-size: 1.1rem;
        cursor: pointer;
    }
    
    .om-button:hover {
        filter: brightness(1.2);
        box-shadow: 0 0 30px var(--card-accent);
    }

    /* ===== RESPONSIVE / MOBILE ===== */
    
    /* Tablet */
    @media (max-width: 900px) {
        .olami-master-card {
            padding: 40px 30px;
            max-width: 100%;
        }
        .om-title {
            font-size: 36px; /* JS will adjust */
        }
        .om-subtitle {
            font-size: 1rem;
        }
        .om-info-item {
            padding: 0 15px;
        }
    }

    /* Mobile - Compact card */
    @media (max-width: 600px) {
        .olami-master-card {
            padding: 20px 15px;
            border-radius: 12px;
        }
        .om-tagline {
            font-size: 0.65rem;
            letter-spacing: 1px;
            padding: 4px 10px;
            margin-bottom: 8px;
        }
        .om-title {
            font-size: 26px; /* JS will adjust */
            margin-bottom: 4px;
        }
        .om-subtitle {
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        .om-description {
            font-size: 0.85rem;
            margin-bottom: 8px;
            line-height: 1.4;
            /* Keep 2-line height on mobile too */
            height: 2.8em;
            min-height: 2.8em;
            max-height: 2.8em;
        }
        .om-info-grid {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0;
            padding: 10px 0;
            margin-bottom: 12px;
        }
        .om-info-item {
            padding: 5px 12px;
            flex: 1;
            min-width: 80px;
        }
        .om-info-item:not(:last-child)::after {
            display: none;
        }
        .om-label {
            font-size: 0.6rem;
            margin-bottom: 2px;
        }
        .om-value {
            font-size: 0.9rem;
        }
        .om-button {
            padding: 12px 25px;
            font-size: 0.9rem;
            width: 100%;
            box-sizing: border-box;
        }
        .om-cta-area {
            padding: 10px 15px 5px;
        }
        /* Glow smaller on mobile */
        .olami-card-glow {
            filter: blur(30px);
            width: 100%;
            height: 100%;
        }
    }

    /* Grid - Responsive for multiple programs */
    .olami-promo-grid {
        display: grid;
        gap: 40px;
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    @media (min-width: 901px) {
        .olami-promo-grid {
            grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
        }
    }
    @media (max-width: 900px) {
        .olami-promo-grid {
            grid-template-columns: 1fr;
            gap: 30px;
            padding: 20px 15px;
        }
    }


/* Source: includes/event-cards.php line 1096 (block 4/4) */
/* Carousel Wrapper - Break out to full viewport width */
    .olami-promo-carousel-wrapper {
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Carousel Track - with side padding for card shadows */
    .olami-promo-carousel {
        display: flex !important;
        gap: 20px !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 20px 30px !important;
    }
    
    .olami-promo-carousel::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Individual Slide - 2 cards visible, accounting for side padding */
    .carousel-slide {
        flex: 0 0 calc(50% - 40px) !important;
        min-width: calc(50% - 40px) !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }
    
    /* Card styling within carousel */
    .carousel-slide .olami-master-wrapper {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .carousel-slide .olami-card-shell {
        width: 100% !important;
    }
    
    .carousel-slide .olami-master-card {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Dots Navigation */
    .olami-promo-carousel-wrapper .carousel-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 24px !important;
        padding: 0 !important;
    }
    
    .olami-promo-carousel-wrapper .carousel-dot {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        border-radius: 50% !important;
        background: var(--border) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .olami-promo-carousel-wrapper .carousel-dot:hover {
        background: var(--text-muted) !important;
        transform: scale(1.2) !important;
    }
    
    .olami-promo-carousel-wrapper .carousel-dot.active {
        background: #d4af37 !important;
        transform: scale(1.4) !important;
    }
    
    /* Tablet: keep side padding */
    @media (max-width: 1400px) {
        .olami-promo-carousel {
            padding: 20px 25px !important;
        }
        
        .carousel-slide {
            flex: 0 0 calc(50% - 35px) !important;
            min-width: calc(50% - 35px) !important;
        }
    }
    
    /* Smaller screens: 1 card at a time */
    @media (max-width: 900px) {
        /* Reset viewport breakout on mobile */
        .olami-promo-carousel-wrapper {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 0 15px !important;
        }
        
        .olami-promo-carousel {
            padding: 15px 0 !important;
            gap: 15px !important;
        }
        
        .carousel-slide {
            flex: 0 0 100% !important;
            min-width: 100% !important;
            scroll-snap-align: start !important;
        }
        
        .carousel-slide .olami-master-card {
            max-width: 600px !important;
            margin: 0 auto !important;
        }
    }
    
    /* Mobile: full width cards with equal padding */
    @media (max-width: 600px) {
        .olami-promo-carousel-wrapper {
            padding: 0 15px !important;
        }
        
        .olami-promo-carousel {
            padding: 10px 0 !important;
            gap: 10px !important;
        }
        
        .carousel-slide {
            flex: 0 0 100% !important;
            min-width: 100% !important;
        }
        
        .carousel-slide .olami-master-card {
            max-width: 100% !important;
        }
    }


