/* Status Page Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    
    --brand-primary: #2c5aa0;
    --brand-secondary: #1e3d6f;
    --brand-accent: #28a745;
    --brand-warning: #ff6b35;
    
    --primary-font: 'Nunito', sans-serif;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 80px rgba(0,0,0,0.2);
}

/* Page Header */
.page-header {
    background: var(--primary-gradient);
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="150" fill="rgba(255,255,255,0.1)" /><circle cx="800" cy="400" r="120" fill="rgba(255,255,255,0.08)" /></svg>');
    animation: float 20s ease-in-out infinite;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* Overall Status Section */
.overall-status-section {
    padding: 80px 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.overall-status-card {
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
    padding: 60px;
    text-align: center;
    transition: transform 0.3s ease;
}

.overall-status-card:hover {
    transform: translateY(-5px);
}

.status-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.status-icon-large.operational {
    background: var(--success-gradient);
    color: white;
}

.status-icon-large.degraded {
    background: var(--warning-gradient);
    color: white;
}

.status-icon-large.outage {
    background: var(--secondary-gradient);
    color: white;
}

.overall-status-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.status-description {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.last-updated {
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.last-updated i {
    animation: rotate 2s linear infinite;
}

/* Services Status Section */
.services-status-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

.service-status-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.service-status-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.operational {
    background: rgba(17, 153, 142, 0.1);
    color: #11998e;
}

.status-badge.degraded {
    background: rgba(252, 227, 138, 0.2);
    color: #f38181;
}

.status-badge.outage {
    background: rgba(240, 147, 251, 0.2);
    color: #f5576c;
}

.service-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: #6c757d;
    font-size: 0.95rem;
}

.metric-value {
    font-weight: 700;
    color: #2c3e50;
}

/* Incident History Section */
.incident-history-section {
    padding: 80px 0;
}

.incident-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.incident-item {
    margin-bottom: 30px;
}

.incident-date {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.incident-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.incident-card.resolved {
    border-left-color: #11998e;
}

.incident-card.monitoring {
    border-left-color: #fce38a;
}

.incident-card.investigating {
    border-left-color: #f093fb;
}

.incident-card:hover {
    transform: translateX(10px);
}

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

.incident-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.incident-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(17, 153, 142, 0.1);
    color: #11998e;
}

.incident-details p {
    margin-bottom: 10px;
    color: #6c757d;
    line-height: 1.6;
}

.incident-details p:last-child {
    margin-bottom: 0;
}

.no-incidents {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 20px;
    margin-top: 40px;
}

.no-incidents i {
    font-size: 48px;
    color: #11998e;
    margin-bottom: 20px;
}

.no-incidents p {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Status Updates Section */
.status-updates-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.updates-card {
    background: white;
    border-radius: 25px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.updates-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 30px;
}

.updates-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.updates-card > p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
}

.status-form {
    max-width: 500px;
    margin: 0 auto 40px;
}

.status-form .form-control {
    padding: 18px 25px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    font-family: var(--primary-font);
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.status-form .form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.1);
    background: white;
}

.status-form .btn {
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.status-form .btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.status-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.subscription-options {
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
}

.subscription-options p {
    color: #6c757d;
    margin-bottom: 20px;
}

.option-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

/* Responsive Styles */
@media (max-width: 991px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-header p {
        font-size: 1.2rem;
    }
    
    .overall-status-card {
        padding: 40px;
    }
    
    .status-icon-large {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
    
    .overall-status-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 150px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .overall-status-section {
        padding: 60px 0;
    }
    
    .overall-status-card {
        padding: 30px;
    }
    
    .status-icon-large {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .overall-status-card h2 {
        font-size: 1.75rem;
    }
    
    .services-status-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .service-status-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .incident-history-section {
        padding: 60px 0;
    }
    
    .incident-card {
        padding: 25px;
    }
    
    .incident-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .status-updates-section {
        padding: 60px 0;
    }
    
    .updates-card {
        padding: 40px 30px;
    }
    
    .updates-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .updates-card h3 {
        font-size: 1.75rem;
    }
    
    .option-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .option-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .overall-status-card h2 {
        font-size: 1.5rem;
    }
    
    .status-description {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-info h4 {
        font-size: 1.1rem;
    }
    
    .incident-header h4 {
        font-size: 1.1rem;
    }
    
    .updates-card h3 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-operational {
    color: #11998e;
}

.text-degraded {
    color: #f38181;
}

.text-outage {
    color: #f5576c;
}

.bg-operational {
    background: rgba(17, 153, 142, 0.1);
}

.bg-degraded {
    background: rgba(252, 227, 138, 0.2);
}

.bg-outage {
    background: rgba(240, 147, 251, 0.2);
}
