/* Status Page Specific Styles */

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.status-box {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.status-box:nth-child(1) { animation-delay: 0.1s; }
.status-box:nth-child(2) { animation-delay: 0.2s; }
.status-box:nth-child(3) { 
    background: rgba(255, 255, 255, 0.1);
    animation-delay: 0.3s; 
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.backend-status .status-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.launcher-status .status-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.downtime-status .status-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-content {
    flex: 1;
}

.status-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.status-text {
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active .status-dot {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-indicator.warning .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

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

/* Hover Effects */
.status-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Status Hero */
.status-hero {
    padding: 140px 0 80px;
    text-align: center;
}

.status-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.status-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Overall Status */
.overall-status {
    padding: 40px 0;
}

.status-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
}

.status-dot.operational {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.status-dot.operational::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #10b981;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.status-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.status-dot.error {
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #10b981;
}

.last-updated {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.last-updated span {
    color: #a855f7;
    font-weight: 500;
}

/* Service Status */
.service-status {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.service-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #a855f7;
}

.service-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 32px;
    backdrop-filter: blur(10px);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}

input:checked + .toggle-slider:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Service Metrics */
.service-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.metric {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.status-operational {
    color: #10b981 !important;
}

.status-warning {
    color: #f59e0b !important;
}

.status-error {
    color: #ef4444 !important;
}

/* Performance Metrics */
.performance-metrics {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.metric-card .metric-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.metric-card .metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

/* Recent Incidents */
.recent-incidents {
    padding: 80px 0;
}

.incidents-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.incident-item {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.incident-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.incident-status {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.incident-status.resolved {
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.incident-status.operational {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.incident-status.warning {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.incident-content {
    flex: 1;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.incident-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.incident-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.incident-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Status Subscribe */
.status-subscribe {
    padding: 80px 0;
    text-align: center;
}

.subscribe-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscribe-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.subscribe-form {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.subscribe-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-overview {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .service-metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .incident-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .incident-status {
        align-self: flex-start;
    }
    
    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subscribe-input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .status-hero {
        padding: 120px 0 60px;
    }
    
    .service-status,
    .performance-metrics,
    .recent-incidents,
    .status-subscribe {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .service-metrics {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 24px;
    }
}
