/* Status Page Specific Styles */

.status-hero {
    padding: 8rem 2rem 4rem;
    background: var(--darker-bg);
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.status-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.status-indicator {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--gray-light);
    background: var(--gray-dark);
    animation: status-appear 0.6s ease-out;
}

@keyframes status-appear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.status-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--red-primary);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.status-text {
    font-size: 1.2rem;
    color: var(--red-primary);
    text-shadow: 0 0 20px var(--red-glow);
    z-index: 1;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-indicator.online .status-pulse {
    border-color: #00ff00;
}

.status-indicator.online .status-text {
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.status-indicator.offline .status-pulse {
    border-color: #ff0000;
    animation: none;
}

.status-indicator.offline .status-text {
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.last-update {
    font-size: 0.7rem;
    color: var(--text-dark);
    text-align: center;
}

/* Status Details */
.status-details {
    padding: 4rem 2rem;
    background: var(--dark-bg);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.status-card {
    background: var(--gray-dark);
    border: 4px solid var(--gray-light);
    overflow: hidden;
    transition: all 0.3s;
    animation: card-slide-in 0.6s ease-out backwards;
}

.status-card:nth-child(1) { animation-delay: 0.1s; }
.status-card:nth-child(2) { animation-delay: 0.2s; }
.status-card:nth-child(3) { animation-delay: 0.3s; }
.status-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes card-slide-in {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-card:hover {
    border-color: var(--red-primary);
    box-shadow: inset 0 0 20px rgba(255, 51, 51, 0.1);
}

.status-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    background: var(--gray-medium);
    border-bottom: 2px solid var(--gray-light);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-title {
    font-size: 1rem;
    color: var(--red-primary);
}

.card-content {
    padding: 2rem;
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: bold;
}

/* Player Stats */
.player-count {
    text-align: center;
    margin-bottom: 2rem;
}

.player-number {
    font-size: 3rem;
    color: var(--red-primary);
    text-shadow: 0 0 20px var(--red-glow);
    margin-bottom: 0.5rem;
}

.player-label {
    font-size: 0.7rem;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.player-bar {
    width: 100%;
    height: 30px;
    background: var(--gray-medium);
    border: 2px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.player-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-dark), var(--red-primary));
    transition: width 1s ease-out;
    position: relative;
}

.player-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: bar-shine 2s ease-in-out infinite;
}

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

.player-capacity {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Uptime Chart */
.uptime-chart {
    display: flex;
    gap: 4px;
    height: 150px;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.uptime-bar {
    flex: 1;
    background: var(--red-primary);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    min-height: 10px;
}

.uptime-bar.offline {
    background: var(--gray-light);
}

.uptime-bar:hover {
    filter: brightness(1.2);
    transform: scaleY(1.05);
}

.uptime-bar::after {
    content: attr(data-day);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.uptime-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-light);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-medium);
    border: 2px solid var(--gray-light);
    transition: all 0.3s;
}

.event-item:hover {
    border-color: var(--red-primary);
}

.event-time {
    font-size: 0.7rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.event-content {
    flex: 1;
}

.event-type {
    font-size: 0.7rem;
    color: var(--red-primary);
    margin-bottom: 0.25rem;
}

.event-message {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.event-icon {
    font-size: 1.5rem;
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--red-primary);
    border-radius: 0;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-events {
    text-align: center;
    padding: 3rem;
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-indicator {
        width: 150px;
        height: 150px;
    }

    .status-text {
        font-size: 1rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .player-number {
        font-size: 2rem;
    }

    .uptime-chart {
        height: 100px;
    }

    .event-item {
        flex-direction: column;
    }

    .event-time {
        white-space: normal;
    }
}
