/* =========================================
   HOME PAGE SPECIFIC STYLES
   ========================================= */

/* --- Animations --- */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
        border-color: rgba(76, 201, 240, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(76, 201, 240, 0.5);
        border-color: rgba(76, 201, 240, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
        border-color: rgba(76, 201, 240, 0.2);
    }
}

/* --- Layout Overrides --- */
#content-layout {
    margin-top: 15vh;
    gap: 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 45px;
    align-items: start;
}

/* --- Event Cards --- */
.events-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.column-subtitle {
    font-size: 1.2rem;
    color: #4cc9f0;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.events-column-list {
    padding-bottom: 20px;
}

/* --- Region Selector --- */
.region-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.region-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.region-btn.active {
    background: rgba(76, 201, 240, 0.2);
    border-color: #4cc9f0;
    color: #fff;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
}

.event-card {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: 20px;
    background-size: cover;
    background-position: top;
    margin-bottom: 25px;
    overflow: hidden;
    border: 2px solid rgb(100, 100, 100);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.event-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(76, 201, 240, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(76, 201, 240, 0.2);
}

.event-card.expanded {
    height: 320px;
    border-color: rgba(76, 201, 240, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(76, 201, 240, 0.3);
}

.event-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.7) 35%, rgba(10, 10, 12, 0.95) 70%, rgba(10, 10, 12, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 35px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.event-card:hover .event-overlay {
    background: linear-gradient(90deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.8) 35%, rgba(10, 10, 12, 0.98) 70%, rgba(10, 10, 12, 1) 100%);
}

.event-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-right: 40px;
}

.event-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.time-display {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin: 0 30px 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.expand-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.expand-btn:hover {
    background: rgba(76, 201, 240, 0.2);
    border-color: #4cc9f0;
    color: #4cc9f0;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
}

.event-details {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    background: rgba(14, 14, 18, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    box-sizing: border-box;
    color: #d1d5db;
    line-height: 1.7;
    overflow-y: auto;
    font-size: 1rem;
    box-shadow: inset 0 15px 25px -15px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

/* --- Event Details Internals --- */
.time-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.time-info span {
    display: inline-block;
    color: #b0b0b0;
    font-size: 0.95rem;
    font-weight: 600;
}

.time-info .separator {
    margin: 0 15px;
    color: rgba(76, 201, 240, 0.5);
}

.event-description {
    text-align: left;
    margin-bottom: 20px;
}

.event-action {
    text-align: center;
    margin-top: auto;
}

.event-web-link {
    display: inline-block;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
    color: #4cc9f0;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.event-web-link:hover {
    background: rgba(76, 201, 240, 0.2);
    border-color: #4cc9f0;
    color: #fff;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
    transform: translateY(-2px);
}

/* --- Labels --- */
.status-label {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.status-upcoming {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.status-announced {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.timer-display {
    font-size: 2.6rem;
    color: #fff;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid rgba(76, 201, 240, 0.2);
    animation: pulseGlow 3s infinite;
    font-variant-numeric: tabular-nums;
    margin-top: 10px;
}

/* --- Active Codes --- */
#codes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.code-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    align-items: center;
    text-align: center;
}

.code-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 201, 240, 0.5);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.code-value {
    font-size: 1.4rem;
    color: #4cc9f0;
    font-family: 'Courier New', monospace;
}

/* --- Characters Section --- */
.section-characters {
    margin-bottom: 60px;
}

#characters-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 45px;
    padding: 40px 0;
}

.char-card {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.4) 0%, rgba(20, 20, 24, 0.8) 100%);
    padding: 30px 25px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 150px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.char-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: linear-gradient(180deg, rgba(40, 40, 48, 0.6) 0%, rgba(25, 25, 30, 0.9) 100%);
    border-color: rgba(206, 174, 125, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(206, 174, 125, 0.25);
}

.char-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(206, 174, 125, 0.8);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(206, 174, 125, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 20px;
    background-color: #000;
}

.char-card:hover img {
    box-shadow: 0 0 35px rgba(206, 174, 125, 0.7);
    border-color: #fff;
    transform: scale(1.08);
}

.char-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
