/**
 * Display Info Specific Styles
 */

/* Display Layout */
.display-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.display-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.school-info {
    text-align: center;
}

.school-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.current-time-display {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.section-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-content {
    padding: 20px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Content Items */
.announcement-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: rgba(44, 85, 48, 0.05);
    margin: 0 -10px;
    padding: 15px 10px;
    border-radius: 8px;
}

.attendance-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.attendance-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.schedule-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #e9ecef;
    border-left-width: 6px;
}

.achievement-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.achievement-item:last-child {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Running Text */
.running-text-container {
    background: #343a40;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    animation: scroll 30s linear infinite;
    padding-left: 100%;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-content {
        padding: 15px;
    }
    
    .video-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .school-logo {
        width: 60px;
        height: 60px;
    }
    
    .display-header h1 {
        font-size: 1.8rem;
    }
    
    .current-time-display {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .video-container {
        height: 200px;
    }
    
    .schedule-item .row {
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pulse Animation for New Items */
.pulse-new {
    animation: pulse 2s ease-in-out;
}

@keyframes pulse {
    0% { background-color: rgba(74, 139, 194, 0.3); }
    50% { background-color: rgba(74, 139, 194, 0.1); }
    100% { background-color: transparent; }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-card {
        border: 2px solid #333;
    }
    
    .section-header {
        border-bottom: 2px solid #333;
    }
    
    .attendance-item, .schedule-item {
        border: 1px solid #333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scrolling-text {
        animation: none;
        transform: none;
    }
    
    .section-card:hover {
        transform: none;
    }
    
    .attendance-item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .display-container {
        background: white !important;
        color: black !important;
    }
    
    .display-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #333;
    }
    
    .section-card {
        box-shadow: none !important;
        border: 1px solid #333 !important;
        break-inside: avoid;
    }
    
    .section-header {
        background: #f0f0f0 !important;
        color: black !important;
    }
    
    .running-text-container {
        display: none !important;
    }
    
    .video-container {
        display: none !important;
    }
}