/**
 * Batting Cage Display Styles
 * Optimized for TV and tablet displays
 */

.gymmaster-cage-display {
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: white;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Baseball pattern background */
.gymmaster-cage-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(254, 253, 4, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(170, 9, 9, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.status-indicator.disconnected {
    background: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Header */
.cage-header {
    background: linear-gradient(135deg, #AA0909 0%, #cc1111 100%);
    padding: 20px 30px;
    border-bottom: 4px solid #fefd04;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cage-header::after {
    content: '⚾';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    opacity: 0.3;
}

.cage-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    flex: 1;
}

.current-time {
    font-size: 24px;
    color: #fefd04;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.weather-widget {
    font-size: 18px;
    color: white;
    text-align: right;
    flex: 1;
    opacity: 0.9;
}

.weather-widget .weather-temp {
    font-size: 24px;
    font-weight: bold;
    color: #fefd04;
}

.weather-widget .weather-condition {
    font-size: 14px;
    opacity: 0.8;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, #fefd04 0%, #fff700 100%);
    color: #000;
    padding: 40px;
    margin: 30px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #AA0909;
    box-shadow: 0 10px 30px rgba(254, 253, 4, 0.3);
    animation: welcomeGlow 2s ease-in-out infinite alternate;
}

@keyframes welcomeGlow {
    from { box-shadow: 0 10px 30px rgba(254, 253, 4, 0.3); }
    to { box-shadow: 0 15px 40px rgba(254, 253, 4, 0.5); }
}

.welcome-message h2 {
    font-size: 42px;
    margin: 0 0 15px 0;
    color: #AA0909;
    font-weight: 900;
}

.welcome-message .booking-info {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.4;
}

.welcome-message .preparation-text {
    font-size: 18px;
    opacity: 0.8;
    margin-top: 10px;
    font-style: italic;
}

/* Active Session */
.active-session {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px;
    margin: 30px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #fefd04;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.active-session h2 {
    font-size: 36px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.countdown-timer {
    font-size: 84px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: #fefd04;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    letter-spacing: 4px;
}

.session-info {
    font-size: 22px;
    opacity: 0.9;
    margin-top: 15px;
}

/* Announcements Section */
.announcements-section {
    background: linear-gradient(135deg, #6f42c1 0%, #563d7c 100%);
    color: white;
    padding: 25px 30px;
    margin: 20px 30px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.announcements-section h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #fefd04;
    text-align: center;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #fefd04;
}

.announcement-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.announcement-message {
    font-size: 16px;
    opacity: 0.9;
}

.announcement-priority-high {
    border-left-color: #dc3545;
}

.announcement-priority-high .announcement-title {
    color: #ffcccb;
}

/* Schedule Section */
.schedule-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 30px 30px;
}

.schedule-title {
    font-size: 36px;
    color: #fefd04;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.schedule-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(170, 9, 9, 0.3);
    backdrop-filter: blur(10px);
    flex: 1;
    overflow-y: auto;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 5px solid #fefd04;
    transition: all 0.3s ease;
}

.booking-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.booking-item:last-child {
    margin-bottom: 0;
}

.booking-item.current {
    background: linear-gradient(135deg, rgba(254, 253, 4, 0.2) 0%, rgba(170, 9, 9, 0.2) 100%);
    border-left-color: #AA0909;
    border-left-width: 8px;
    box-shadow: 0 0 15px rgba(254, 253, 4, 0.3);
}

.booking-item.next {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.2) 100%);
    border-left-color: #28a745;
    border-left-width: 8px;
}

.booking-item.upcoming {
    opacity: 0.7;
}

.booking-time {
    font-size: 28px;
    font-weight: bold;
    color: white;
    min-width: 160px;
    text-align: left;
}

.booking-name {
    font-size: 22px;
    font-weight: bold;
    color: #fefd04;
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.booking-duration {
    font-size: 18px;
    color: #ccc;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.booking-type {
    font-size: 14px;
    color: #aaa;
    display: block;
    margin-top: 2px;
    font-style: italic;
}

.no-bookings {
    text-align: center;
    font-size: 28px;
    color: #666;
    padding: 60px 20px;
    font-style: italic;
}

.loading-message {
    text-align: center;
    font-size: 24px;
    color: #fefd04;
    padding: 40px;
}

/* Promotions Footer */
.promotions-footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    padding: 15px 30px;
    border-top: 2px solid #fefd04;
    text-align: center;
}

.promotion-item {
    font-size: 18px;
    color: #fefd04;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: promotionScroll 20s linear infinite;
}

@keyframes promotionScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Emergency/Alert Messages */
.emergency-alert {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    animation: alertBlink 1s ease-in-out infinite alternate;
}

@keyframes alertBlink {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cage-title {
        font-size: 32px;
    }
    
    .current-time {
        font-size: 18px;
    }
    
    .weather-widget {
        font-size: 14px;
    }
    
    .welcome-message h2 {
        font-size: 28px;
    }
    
    .welcome-message .booking-info {
        font-size: 20px;
    }
    
    .countdown-timer {
        font-size: 48px;
    }
    
    .schedule-title {
        font-size: 24px;
    }
    
    .booking-time {
        font-size: 20px;
        min-width: 120px;
    }
    
    .booking-name {
        font-size: 18px;
    }
    
    .booking-duration {
        font-size: 14px;
        min-width: 60px;
    }
    
    .cage-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cage-header::after {
        display: none;
    }
}

@media (max-height: 600px) {
    .cage-title {
        font-size: 36px;
    }
    
    .welcome-message h2 {
        font-size: 32px;
    }
    
    .countdown-timer {
        font-size: 60px;
    }
    
    .schedule-section {
        padding: 0 20px 20px;
    }
}

/* Print styles (for screenshot/documentation) */
@media print {
    .gymmaster-cage-display {
        height: auto;
        background: white;
        color: black;
    }
    
    .status-indicator {
        display: none;
    }
}