/* SCHEDULE STYLES - Fight Card Grid Layout */

.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Tournament Header */
.tournament-header {
    margin-bottom: 30px;
}

.tournament-banner {
    background: #000000;
    border: 3px solid #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.tournament-banner h1 {
    font-family: var(--font-heading);
    font-size: 4em;
    font-weight: normal;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(255, 170, 0, 0.5);
}

.tournament-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
}

.sponsor {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 15px;
    font-style: italic;
}

.tournament-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.week-badge, .date-badge {
    background: #000000;
    border: 1px solid #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-badge {
    color: #ffaa00;
}

.date-badge {
    color: #00ff00;
}

/* Schedule Header */
.schedule-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #000000;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.schedule-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.current-time {
    font-family: var(--font-body);
    color: #888;
    font-size: 0.9em;
    margin: 0;
}

/* Live Fight and Countdown Section */
.live-countdown-section {
    margin: 15px 0;
}

.live-countdown-section.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: stretch; /* Make both sections same height */
}

.live-countdown-section.full-layout {
    display: block;
}

/* Live Fight Alert */
.live-fight-alert {
    background: linear-gradient(135deg, #1a0808, #2a0f0f);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    animation: livePulse 2s infinite;
    min-height: 120px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.live-label {
    color: #ff0000;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-fight-name {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffcccc;
    margin: 8px 0;
}

.watch-live-btn {
    display: inline-block;
    background: #ff0000;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.watch-live-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

@keyframes livePulse {
    0% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
    }
    100% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    }
}

/* Countdown Timer Styles */
.next-fight-countdown {
    background: linear-gradient(135deg, #2a1810, #1a0f08);
    border: 2px solid #ff6600;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
    min-height: 120px; /* Match live fight alert height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.next-fight-countdown.full-width {
    margin: 15px 0;
}

.next-fight-countdown.half-width {
    /* Height and flexbox already inherited from base class */
}

.countdown-label {
    color: #ff6600;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    margin: 10px 0;
}

.countdown-display {
    font-family: 'Courier New', monospace;
    font-size: 2em;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    display: block;
    margin: 5px 0;
}

.countdown-fight {
    color: #ccc;
    font-size: 0.9em;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive countdown */
@media (max-width: 768px) {
    .countdown-display {
        font-size: 1.5em;
    }
    
    .next-fight-countdown {
        padding: 12px;
        margin: 10px 0;
    }
    
    /* Mobile: Stack live fight and countdown vertically */
    .live-countdown-section.split-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .live-fight-alert {
        padding: 12px;
    }
    
    .live-fight-name {
        font-size: 1em;
    }
    
    .watch-live-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .countdown-display {
        font-size: 1.3em;
    }
}

/* Animation for urgency */
@keyframes urgentPulse {
    0% { 
        color: #ff4444;
        text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    }
    50% { 
        color: #ff0000;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    100% { 
        color: #ff4444;
        text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    }
}

.countdown-display.urgent {
    animation: urgentPulse 1s infinite;
}

/* MVP Crown Styling */
.mvp-crown {
    color: #FFD700;
    font-size: 1.1em;
    margin-left: 3px;
    text-shadow: 
        0 0 5px #FFD700,
        0 0 10px #FFD700,
        0 0 15px #FFD700;
    animation: crownGlow 2s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes crownGlow {
    from {
        transform: scale(1);
        text-shadow: 
            0 0 5px #FFD700,
            0 0 10px #FFD700,
            0 0 15px #FFD700;
    }
    to {
        transform: scale(1.1);
        text-shadow: 
            0 0 8px #FFD700,
            0 0 15px #FFD700,
            0 0 25px #FFD700,
            0 0 35px #FFA500;
    }
}

/* MVP Crown in live fight and countdown sections */
.live-fight-name .mvp-crown,
.countdown-fight .mvp-crown {
    color: #FFD700;
    text-shadow: 
        0 0 3px #FFD700,
        0 0 6px #FFD700;
    animation: crownPulse 1.5s ease-in-out infinite;
}

@keyframes crownPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Fight Sections */
.fights-section {
    margin-bottom: 30px;
}

.section-title {
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.upcoming-section .section-title {
    border-color: #ffaa00;
    color: #ffaa00;
    background: linear-gradient(135deg, #2a1810, #1a0f08);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.completed-section .section-title {
    border-color: #888888;
    color: #888888;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    opacity: 0.8;
}

.completed-section {
    opacity: 0.85;
}

.completed-section .fight-card {
    background: #0a0a0a;
}

.completed-section .fight-card:hover {
    background: #141414;
}

/* Fights List */
.fights-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.fight-card {
    background: #111111;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 20px;
}

.fight-card:hover {
    border-color: #ffffff;
    background: #1a1a1a;
}

.fight-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #444444;
}

/* Status-specific styling */
.fight-card.status-active::before {
    background: #00ff00;
}

.fight-card.status-completed::before {
    background: #888888;
}

.fight-card.status-voided::before {
    background: #ff4444;
}

.fight-card.status-scheduled::before {
    background: #ffaa00;
}

.fight-content {
    display: contents;
}

/* Fight Time */
.fight-time {
    display: flex;
}

.time-display {
    background: #000000;
    border: 1px solid #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
    min-width: 70px;
}

/* Fight Matchup */
.fight-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.fighter-slot {
    display: block;
}

.fighter1 {
    text-align: right;
}

.fighter2 {
    text-align: left;
}

/* Winner/Loser styling for completed fights */
.fighter-slot.winner .fighter-name a {
    color: #9acd32 !important;
    font-weight: bold;
}

.fighter-slot.loser .fighter-name a {
    color: #ff4500 !important;
    text-decoration: line-through;
    opacity: 0.8;
}

.fighter-name {
    font-weight: bold;
    font-size: 1rem;
    display: block;
}

.fighter-name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fighter-name a:hover {
    color: #ffaa00;
}

.vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    background: #333333;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fight-number {
    display: none;
}

/* Fight Status */
.fight-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator.live {
    background: #004400;
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-indicator.completed {
    background: #333333;
    color: #888888;
    border: 1px solid #555555;
}

.status-indicator.voided {
    background: #440000;
    color: #ff4444;
    border: 1px solid #ff4444;
}

.status-indicator.upcoming {
    background: #442200;
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

/* No Fights */
.no-fights {
    text-align: center;
    padding: 60px 20px;
    background: #222222;
    border: 2px dashed #444444;
    border-radius: 12px;
}

.no-fights h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ff4444;
}

.no-fights p {
    font-size: 1.1rem;
    color: #888888;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tournament-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .fight-card {
        padding: 12px 16px;
    }
    
    .fight-matchup {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .time-display {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .fighter-name {
        font-size: 0.9rem;
    }
    
    .vs-text {
        font-size: 0.9rem;
        padding: 0 6px;
    }
    
    .status-indicator {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .schedule-title {
        font-size: 1.4rem;
    }
    
    .tournament-title {
        font-size: 1.6rem;
    }
} 

/* Mobile/Desktop Visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block !important;
    }
    
    .mobile-only {
        display: none !important;
    }
}

/* Mobile Fight Cards */
.fight-card-mobile {
    background: #111111;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.fight-card-mobile:hover {
    border-color: #ffffff;
    background: #1a1a1a;
}

.fight-card-mobile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #444444;
}

/* Status-specific styling for mobile */
.fight-card-mobile.status-active::before {
    background: #00ff00;
}

.fight-card-mobile.status-completed::before {
    background: #888888;
}

.fight-card-mobile.status-voided::before {
    background: #ff4444;
}

.fight-card-mobile.status-scheduled::before {
    background: #ffaa00;
}

.mobile-fight-content {
    text-align: center;
    font-family: var(--font-body);
}

.mobile-fighter-name {
    font-size: 1rem;
    font-weight: bold;
    margin: 4px 0;
}

.mobile-fighter-name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-fighter-name a:hover {
    color: #ffaa00;
}

/* Winner/Loser styling for mobile completed fights */
.mobile-fighter-name.winner a {
    color: #9acd32 !important;
    font-weight: bold;
}

.mobile-fighter-name.loser a {
    color: #ff4500 !important;
    text-decoration: line-through;
    opacity: 0.8;
}

.mobile-vs {
    font-size: 0.9rem;
    color: #888888;
    margin: 6px 0;
    font-style: italic;
}

.mobile-fight-time {
    font-size: 0.9rem;
    color: #ffaa00;
    font-weight: bold;
    margin: 8px 0;
}

.mobile-fight-status {
    margin-top: 8px;
}

.mobile-fight-status.completed {
    color: #888888;
    font-size: 0.8rem;
    font-weight: bold;
}

.mobile-fight-status.voided {
    color: #ff4444;
    font-size: 0.8rem;
    font-weight: bold;
}

.mobile-fight-status.upcoming {
    color: #ffaa00;
    font-size: 0.8rem;
    font-weight: bold;
}

.mobile-live-button {
    display: inline-block;
    background: #ff0000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mobile-live-button:hover {
    background: #cc0000;
    transform: scale(1.05);
} 