/* ═══════════════════════════════════════════════════════════════════════════
   CyberKavach - Premium Typography-Driven Hero
   Minimal, modern, event-focused with animated word rotation
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Container ────────────────────────────────────────────────────── */
.ck-hero-typo {
    position: relative;
    min-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

/* ── Two-Column Grid ───────────────────────────────────────────────────── */
.ck-hero-typo__grid {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

/* ── Left Side: Typography ─────────────────────────────────────────────── */
.ck-hero-typo__left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Main Headline */
.ck-hero-typo__headline {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.ck-hero-typo__headline-line {
    display: block;
}

/* Animated word container */
.ck-hero-typo__word-wrapper {
    position: relative;
    display: inline-block;
    min-width: 280px;
    height: 1.1em;
    overflow: visible;
    vertical-align: top;
}

.ck-hero-typo__word {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: #E53935;
}

.ck-hero-typo__word--active {
    opacity: 1;
    transform: translateY(0);
}

.ck-hero-typo__word--exiting {
    opacity: 0;
    transform: translateY(-100%);
}

/* Supporting Statement */
.ck-hero-typo__tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Right Side: Featured Event ────────────────────────────────────────── */
.ck-hero-typo__right {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-top: -1rem;
    margin-right: 0;
}

/* Red Backing Layer - Creates Elevated Effect */
.ck-hero-typo__event-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: #E53935;

    border-radius: 8px;
    z-index: -1;
    transition: all 0.15s ease;
}

/* Main Event Card - Tactile Button Style */
.ck-hero-typo__event-card {
    position: relative;
    width: 100%;
    min-width: 320px;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 8px;
    transform: translate(0, 0);
    transition: transform 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

.ck-hero-typo__event-card:hover {
    transform: translate(2px, 2px);
    border-color: rgba(255, 255, 255, 0.88);
}

.ck-hero-typo__event-card:hover::before {
    top: 3px;
    left: 3px;
    right: -3px;
    bottom: -3px;
}

/* Event Poster - Compact */
.ck-hero-typo__poster {
    position: relative;
    width: 100%;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    overflow: visible;
    background: #000;
    border-radius: 6px 6px 0 0;
}

.ck-hero-typo__poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.ck-hero-typo__poster-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0606 0%, #0a0a0a 100%);
    border-radius: 6px 6px 0 0;
}

.ck-hero-typo__poster-fallback i,
.ck-hero-typo__poster-fallback svg {
    width: 48px;
    height: 48px;
    color: rgba(229, 57, 53, 0.4);
}

/* Event Label - Compact Badge */
.ck-hero-typo__event-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: #dc2626;
    border: rgba(255, 255, 255, 1) solid 1px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    z-index: 1;
    box-shadow:
    3px 3px 0 rgba(183, 183, 183, 0.9),
    0 0 0 1px rgba(255,255,255,0.68);
}

/* Event Timer - Countdown at Center Junction */
.ck-hero-typo__timer {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.ck-hero-typo__timer-unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    padding: 4px 6px;
    min-width: 36px;
}

/* Individual Red Backing Layer for Each Timer Unit */
.ck-hero-typo__timer-unit::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: #C62828;
    border-radius: 4px;
    z-index: -1;
}

.ck-hero-typo__timer-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ck-hero-typo__timer-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(10, 10, 10, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Event Info - Compact Padding */
.ck-hero-typo__event-info {
    position: relative;
    padding: 1.8rem 1.4rem 1.4rem;
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.68);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ck-hero-typo__event-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Event Description */
.ck-hero-typo__event-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Items - Compact Inline */
.ck-hero-typo__event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ck-hero-typo__meta-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ck-hero-typo__meta-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ck-hero-typo__meta-icon i {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.ck-hero-typo__meta-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.005em;
}

/* CTA Button - Red High Contrast */
.ck-hero-typo__event-cta {
    display: flex;
    gap: 0;
    margin-top: auto;
}

.ck-hero-typo__cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    padding: 0.65rem 1.35rem;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;

    border: 2px solid #DC2626;
    border-radius: 6px;
    background: #DC2626;
    color: #ffffff;

    box-shadow: 4px 4px 0px 0px #ffffff;
    transform: translate(0, 0);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
}

.ck-hero-typo__cta-primary:hover {
    box-shadow: 2px 2px 0px 0px #5a0f0f;
    transform: translate(2px, 2px);
}

.ck-hero-typo__cta-primary:active {
    box-shadow: 0px 0px 0px 0px #5a0f0f;
    transform: translate(3px, 3px);
}

.ck-hero-typo__cta-primary i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Clean & Minimalist Community CTA Card (No Event Hero Fallback) ─────── */
.ck-cta-minimal {
    position: relative;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    z-index: 1;
    transform: translate(0, 0);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

/* Elevated Red Backing Layer */
.ck-cta-minimal::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: #E53935;
    border-radius: 8px;
    z-index: -1;
    transition: all 0.15s ease;
}

.ck-cta-minimal:hover {
    transform: translate(2px, 2px);
    border-color: rgba(255, 255, 255, 0.95);
}

.ck-cta-minimal:hover::before {
    top: 3px;
    left: 3px;
    right: -3px;
    bottom: -3px;
}

.ck-cta-minimal__info {
    padding: 1.6rem 1.4rem 1.4rem;
    background: #141414;
    border-radius: 8px;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ck-cta-minimal__label-row {
    margin-bottom: 0.1rem;
}

.ck-cta-minimal__label-row .ck-hero-typo__event-label {
    position: static;
    display: inline-block;
    top: auto;
    left: auto;
}

.ck-cta-minimal__pillars {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #E53935;
    margin-top: -0.3rem;
}

.ck-cta-minimal__pillars span {
    color: rgba(255, 255, 255, 0.88);
}

.ck-cta-minimal__desc {
    font-size: 0.84rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
    display: block;
    -webkit-line-clamp: unset;
}

/* Compact Minimal Tags */
.ck-cta-minimal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ck-cta-minimal__tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

/* Stats Row */
.ck-cta-minimal__stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.1rem 0;
}

.ck-cta-minimal__stats strong {
    color: #ffffff;
    font-weight: 800;
}

.ck-cta-minimal__dot {
    color: #E53935;
}

/* Actions */
.ck-cta-minimal__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.ck-cta-minimal__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    transition: all 0.15s ease;
}

.ck-cta-minimal__btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Legacy Empty State ────────────────────────────────────────────────── */
.ck-hero-typo__empty::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: rgba(220, 38, 38, 0.6);
    border-radius: 8px;
    z-index: -1;
}

.ck-hero-typo__empty {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    text-align: center;
    padding: 2.5rem;
    background: #141414;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    transform: translate(0, 0);
}

.ck-hero-typo__empty i {
    width: 48px;
    height: 48px;
    color: rgba(220, 38, 38, 0.5);
    margin-bottom: 1rem;
}

.ck-hero-typo__empty p {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    max-width: 260px;
    line-height: 1.5;
}

/* ── Mobile Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ck-hero-typo__grid {
        gap: 5rem;
    }

    .ck-hero-typo__headline {
        font-size: clamp(3rem, 6vw, 5rem);
    }
}

@media (max-width: 768px) {
    .ck-hero-typo {
        min-height: auto;
        padding: 6rem 5% 4rem;
    }

    .ck-hero-typo__grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .ck-hero-typo__left {
        gap: 2rem;
    }

    .ck-hero-typo__headline {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .ck-hero-typo__word-wrapper {
        min-width: 220px;
    }

    .ck-hero-typo__tagline {
        font-size: 0.85rem;
    }

    .ck-hero-typo__right {
        max-width: 100%;
        margin-left: 0;
        margin-top: 0;
        margin-right: 0;
    }

    .ck-hero-typo__event-card::before {
        top: 5px;
        left: 5px;
        right: -5px;
        bottom: -5px;
    }

    .ck-hero-typo__event-card:hover::before {
        top: 4px;
        left: 4px;
        right: -4px;
        bottom: -4px;
    }

    .ck-hero-typo__event-info {
        padding: 1.7rem 1.2rem 1.2rem;
    }

    .ck-hero-typo__event-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .ck-hero-typo__event-meta {
        gap: 0.6rem;
        margin-bottom: 1.1rem;
    }

    .ck-hero-typo__meta-icon {
        width: 26px;
        height: 26px;
    }

    .ck-hero-typo__meta-icon i {
        width: 13px;
        height: 13px;
    }

    .ck-hero-typo__meta-text {
        font-size: 0.85rem;
    }

    .ck-hero-typo__cta-primary {
        padding: 0.65rem 1.3rem;
        font-size: 0.85rem;
    }

    .ck-hero-typo__timer {
        gap: 4px;
        bottom: -16px;
    }

    .ck-hero-typo__timer-unit {
        min-width: 34px;
        padding: 4px 5px;
    }

    .ck-hero-typo__timer-unit::before {
        top: 2px;
        left: 2px;
        right: -2px;
        bottom: -2px;
    }

    .ck-hero-typo__timer-value {
        font-size: 0.9rem;
    }

    .ck-hero-typo__timer-label {
        font-size: 0.48rem;
    }

    .ck-hero-typo__empty::before {
        top: 6px;
        left: 6px;
        right: -6px;
        bottom: -6px;
    }

    .ck-hero-typo__empty {
        min-height: 250px;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .ck-hero-typo {
        padding: 4.5rem 1.15rem 2.5rem;
        box-sizing: border-box;
        max-width: 100vw;
    }

    .ck-hero-typo__headline {
        font-size: clamp(1.85rem, 10vw, 2.5rem);
    }

    .ck-hero-typo__word-wrapper {
        min-width: 0;
        max-width: 100%;
        display: inline-block;
    }

    .ck-hero-typo__tagline {
        font-size: 0.75rem;
    }

    .ck-hero-typo__event-card::before {
        top: 4px;
        left: 4px;
        right: -4px;
        bottom: -4px;
    }

    .ck-hero-typo__event-card:hover::before {
        top: 3px;
        left: 3px;
        right: -3px;
        bottom: -3px;
    }

    .ck-hero-typo__event-label {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }

    .ck-hero-typo__event-info {
        padding: 1.6rem 1.1rem 1.1rem;
    }

    .ck-hero-typo__event-title {
        font-size: 1.1rem;
        margin-bottom: 0.9rem;
    }

    .ck-hero-typo__event-meta {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .ck-hero-typo__meta-icon {
        width: 26px;
        height: 26px;
    }

    .ck-hero-typo__meta-icon i {
        width: 13px;
        height: 13px;
    }

    .ck-hero-typo__meta-text {
        font-size: 0.8rem;
    }

    .ck-hero-typo__cta-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .ck-hero-typo__cta-primary:hover {
        box-shadow: 2px 2px 0px 0px #dc2626;
    }

    .ck-hero-typo__cta-primary:active {
        box-shadow: 0px 0px 0px 0px #dc2626;
    }

    .ck-hero-typo__timer {
        gap: 4px;
        bottom: -15px;
    }

    .ck-hero-typo__timer-unit {
        min-width: 32px;
        padding: 3px 5px;
    }

    .ck-hero-typo__timer-unit::before {
        top: 2px;
        left: 2px;
        right: -2px;
        bottom: -2px;
    }

    .ck-hero-typo__timer-value {
        font-size: 0.85rem;
    }

    .ck-hero-typo__timer-label {
        font-size: 0.45rem;
    }

    .ck-hero-typo__empty::before {
        top: 5px;
        left: 5px;
        right: -5px;
        bottom: -5px;
    }

    .ck-hero-typo__empty {
        min-height: 220px;
        padding: 1.75rem;
    }

    .ck-hero-typo__empty i {
        width: 40px;
        height: 40px;
    }

    .ck-hero-typo__empty p {
        font-size: 0.85rem;
    }

    .ck-cta-minimal__features {
        grid-template-columns: 1fr;
    }

    .ck-cta-minimal__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Reduced Motion Support ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ck-hero-typo__word {
        transition: opacity 0.3s ease;
        transform: none !important;
    }

    .ck-hero-typo__event-card {
        transition: none;
    }

    .ck-hero-typo__event-card:hover {
        transform: none;
    }

    .ck-hero-typo__event-card::before,
    .ck-hero-typo__event-card:hover::before {
        transition: none;
        top: 6px;
        left: 6px;
        right: -6px;
        bottom: -6px;
    }

    .ck-hero-typo__cta-primary {
        transition: none;
    }

    .ck-hero-typo__cta-primary:hover,
    .ck-hero-typo__cta-primary:active {
        transform: none;
        box-shadow: 4px 4px 0px 0px #dc2626;
    }
}
