/**
 * Event Page Styles
 */

/* ============================================
   PREMIUM EVENT DETAIL PAGE STYLES
   ============================================ */

/* --- HERO BANNER --- */
.event-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 0;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(var(--hub-accent-rgb), 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(var(--hub-accent-rgb), 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.event-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.event-hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge-type {
    background: rgba(var(--hub-accent-rgb), 0.15);
    border: 1px solid rgba(var(--hub-accent-rgb), 0.3);
    color: var(--hub-accent);
}

.hero-badge-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-full {
    background: rgba(207, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(207, 0, 0, 0.4);
}

.status-upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-ongoing {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    animation: pulse-status 2s ease-in-out infinite;
}

.status-finished {
    background: rgba(100, 100, 100, 0.2);
    color: #888;
    border: 1px solid rgba(100, 100, 100, 0.4);
}

@keyframes pulse-status {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

.event-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 60px rgba(var(--hub-accent-rgb), 0.3);
    background: linear-gradient(180deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.hero-meta-item svg {
    width: 22px;
    height: 22px;
    color: var(--hub-accent);
}

/* --- MAIN CONTENT LAYOUT --- */
.event-main {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    padding: 4rem 0 6rem;
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* --- LEFT COLUMN: CONTENT --- */
.event-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hub-accent), transparent);
    opacity: 0.5;
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title svg {
    width: 24px;
    height: 24px;
    color: var(--hub-accent);
}

.event-description {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.9;
}

.event-description p {
    margin-bottom: 1rem;
}

.event-description strong {
    color: #fff;
}

/* --- PARTICIPANTS SECTION --- */
.participants-note {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1.25rem;
}

.participant-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.participant-avatar-wrapper:hover {
    transform: translateY(-4px);
}

.participant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(var(--hub-accent-rgb), 0.3);
    transition: all 0.3s ease;
}

.participant-avatar-default {
    background: linear-gradient(135deg, rgba(var(--hub-accent-rgb), 0.2), rgba(var(--hub-accent-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--hub-accent);
    font-size: 1.25rem;
}

.participant-name {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-avatar-wrapper:hover .participant-avatar {
    border-color: var(--hub-accent);
    box-shadow: 0 0 20px rgba(var(--hub-accent-rgb), 0.3);
}

.participant-avatar-wrapper:hover .participant-name {
    color: #fff;
}

.participants-empty {
    color: #555;
    font-style: italic;
    padding: 1rem 0;
}

/* --- BATTLES LIST --- */
.battles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* --- CONTENT CARD --- */
.content-card {
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hub-accent), transparent);
    opacity: 0.5;
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title svg {
    width: 24px;
    height: 24px;
    color: var(--hub-accent);
}

.battle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.battle-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(var(--hub-accent-rgb), 0.2);
    transform: translateX(8px);
}

.battle-item-matchup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.battle-item-mc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.battle-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(var(--hub-accent-rgb), 0.3);
}

.battle-item-avatar-default {
    background: linear-gradient(135deg, rgba(var(--hub-accent-rgb), 0.2), rgba(var(--hub-accent-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--hub-accent);
    font-size: 1.1rem;
}

.battle-item-avatar-tba {
    background: linear-gradient(135deg, rgba(100,100,100, 0.2), rgba(100,100,100, 0.05));
    border-color: rgba(100,100,100, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.battle-item-avatar-tba svg {
    width: 24px;
    height: 24px;
}

.battle-item-mc-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.battle-item-mc-tba {
    color: #888;
    font-style: italic;
}

.battle-item-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

.vs-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--hub-accent);
    letter-spacing: 2px;
}

.battle-item-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.battle-status-upcoming {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.battle-status-live {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.battle-status-voting {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.battle-status-finished {
    background: rgba(100, 100, 100, 0.15);
    color: #888;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.battle-item-arrow {
    color: #444;
    transition: all 0.3s ease;
}

.battle-item:hover .battle-item-arrow {
    color: var(--hub-accent);
    transform: translateX(4px);
}

.battle-item-arrow svg {
    width: 24px;
    height: 24px;
}

/* --- SIDEBAR --- */
.event-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ticket-card {
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.ticket-header {
    background: linear-gradient(135deg, rgba(var(--hub-accent-rgb), 0.2), rgba(var(--hub-accent-rgb), 0.05));
    padding: 2.5rem;
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    position: relative;
}

.ticket-header::before,
.ticket-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 24px;
    height: 24px;
    background: #0a0a0a;
    border-radius: 50%;
}

.ticket-header::before { left: -12px; }
.ticket-header::after { right: -12px; }

.ticket-date-day {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(var(--hub-accent-rgb), 0.3);
}

.ticket-date-month {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hub-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

.ticket-date-year {
    font-size: 1rem;
    color: #666;
    margin-top: 0.25rem;
}

/* --- DATE RANGE STYLES (when end date exists) --- */
.ticket-header.has-end-date {
    padding: 1.5rem 1rem;
}

.ticket-date-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.ticket-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.ticket-date-separator {
    color: var(--hub-accent);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-date-separator svg {
    width: 24px;
    height: 24px;
}

.ticket-date-day-small {
    font-size: 3rem !important;
}

.ticket-date-block .ticket-date-month {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

.ticket-date-block .ticket-date-year {
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.ticket-body {
    padding: 2rem;
}

.ticket-detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ticket-detail-row:last-of-type {
    border-bottom: none;
}

.ticket-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--hub-accent-rgb), 0.1);
    border: 1px solid rgba(var(--hub-accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticket-detail-icon svg {
    width: 22px;
    height: 22px;
    color: var(--hub-accent);
}

.ticket-detail-content {
    flex: 1;
}

.ticket-detail-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ticket-detail-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

/* Progress in ticket */
.ticket-progress-section {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.ticket-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ticket-progress-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.ticket-progress-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.ticket-progress-value span {
    color: var(--hub-accent);
}

.ticket-progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    overflow: hidden;
}

.ticket-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hub-accent), rgba(var(--hub-accent-rgb), 0.6));
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(var(--hub-accent-rgb), 0.3);
}

.event-progress-bar {
    width: var(--progress-percent, 0%);
}

/* Ticket Action Button */
.ticket-action {
    padding: 0 2rem 2rem;
}

.ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.ticket-btn-primary {
    background: linear-gradient(135deg, var(--hub-accent), rgba(var(--hub-accent-rgb), 0.8));
    color: #fff;
    box-shadow: 0 10px 40px rgba(var(--hub-accent-rgb), 0.3);
}

.ticket-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(var(--hub-accent-rgb), 0.5);
}

.ticket-btn-registered {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    color: #4caf50;
    border: 2px solid rgba(76, 175, 80, 0.4);
    cursor: default;
}

.ticket-btn-disabled {
    background: rgba(255,255,255,0.05);
    color: #555;
    cursor: not-allowed;
}

/* --- RELATED EVENTS --- */
.related-section {
    margin-top: 2rem;
}

.related-title {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(var(--hub-accent-rgb), 0.2);
    transform: translateX(5px);
}

.related-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    background: rgba(var(--hub-accent-rgb), 0.1);
    border-radius: 8px;
}

.related-date-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hub-accent);
}

.related-date-day {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.related-info {
    flex: 1;
}

.related-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.related-type {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.related-arrow {
    color: #444;
    transition: color 0.3s ease;
}

.related-card:hover .related-arrow {
    color: var(--hub-accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .event-layout {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
        order: -1;
    }

    .ticket-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .event-hero {
        min-height: 45vh;
        padding: 3rem 1rem;
    }

    .event-hero-title {
        font-size: 2rem;
    }

    .event-hero-meta {
        gap: 1rem;
    }

    .hero-meta-item {
        font-size: 0.9rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .ticket-date-day {
        font-size: 3.5rem;
    }

    .ticket-date-day-small {
        font-size: 2.25rem !important;
    }

    .ticket-date-block .ticket-date-month {
        font-size: 0.9rem;
    }

    .ticket-date-separator svg {
        width: 20px;
        height: 20px;
    }

    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .participant-avatar {
        width: 50px;
        height: 50px;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }

.ticket-card {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}
