/* Status Page Specific Styles */

/* Status Header */
.status-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 80px;
}

.status-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.status-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.overall-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38a169;
    animation: pulse 2s infinite;
}

.status-dot.warning {
    background: #d69e2e;
}

.status-dot.error {
    background: #e53e3e;
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.last-updated {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Status Section */
.status-section {
    padding: 4rem 0;
}

.status-section:nth-child(even) {
    background-color: #f8fafc;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #38a169;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.status-card.warning {
    border-left-color: #d69e2e;
}

.status-card.error {
    border-left-color: #e53e3e;
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-card-header h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin: 0;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.operational {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.warning {
    background: #fef5e7;
    color: #744210;
}

.status-badge.error {
    background: #fed7d7;
    color: #742a2a;
}

.status-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: #4a5568;
    font-size: 0.9rem;
}

.metric-value {
    font-weight: 600;
    color: #1a365d;
    font-size: 1rem;
}

/* Security Details */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.security-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.security-card h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.vulnerability-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vuln-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.vuln-stat.critical {
    background: #fed7d7;
    color: #742a2a;
}

.vuln-stat.high {
    background: #fef5e7;
    color: #744210;
}

.vuln-stat.medium {
    background: #e6fffa;
    color: #22543d;
}

.vuln-stat.low {
    background: #ebf8ff;
    color: #2c5282;
}

.vuln-count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vuln-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-checks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.check-icon {
    font-size: 1.2rem;
}

.check-label {
    flex: 1;
    font-weight: 500;
    color: #1a365d;
}

.check-status {
    color: #38a169;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Activity Timeline */
.activity-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #718096;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: right;
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-header h1 {
        font-size: 2rem;
    }
    
    .overall-status {
        flex-direction: column;
        gap: 1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .vulnerability-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-time {
        text-align: left;
        min-width: auto;
    }
}

/* Status Page Specific Animations */
.status-card {
    animation: slideInUp 0.6s ease-out;
}

.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 slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1a365d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
