/* ========================================
   BeatFocus System Status Page
   ======================================== */
@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 100 700;
    src: url('assets/fonts/MaterialSymbolsRounded.woff2') format('woff2');
    font-display: block;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* ========================================
   Page Layout
   ======================================== */
.status-page {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
}

/* ========================================
   Header
   ======================================== */
.status-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 32px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.back-link:hover {
    color: var(--text);
    background: var(--border-light);
}
.back-link .material-symbols-rounded {
    font-size: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}
.status-badge .material-symbols-rounded {
    font-size: 16px;
}

.status-header h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.status-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ========================================
   Status Overview
   ======================================== */
.status-overview {
    max-width: 900px;
    margin: 0 auto 64px;
}

.status-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.status-card.main-status {
    text-align: center;
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.status-indicator.small {
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

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

.status-indicator.small .status-dot {
    width: 8px;
    height: 8px;
}

.status-indicator.online .status-dot {
    background: #28c840;
    box-shadow: 0 0 12px rgba(40, 200, 64, 0.5);
}

.status-indicator.online .status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(40, 200, 64, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

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

.status-indicator.degraded .status-dot {
    background: #f5a623;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

.status-indicator.offline .status-dot {
    background: #ff3b30;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.5);
}

.status-updated {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.status-card-header .material-symbols-rounded {
    font-size: 22px;
    color: var(--text-muted);
}

.status-card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   Current Version
   ======================================== */
.current-version {
    max-width: 900px;
    margin: 0 auto 64px;
}

.section-header-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header-inline .material-symbols-rounded {
    font-size: 28px;
    color: var(--primary);
}

.section-header-inline h2 {
    font-size: 24px;
    font-weight: 700;
}

.version-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}

.version-card.current {
    border-color: rgba(255, 59, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.version-card.current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff6b30);
}

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

.version-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.version-number {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.version-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-tag.latest {
    background: rgba(40, 200, 64, 0.1);
    border-color: rgba(40, 200, 64, 0.3);
    color: #28c840;
}

.version-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.version-date .material-symbols-rounded {
    font-size: 18px;
    color: var(--text-muted);
}

.version-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--text-muted);
}

.btn-download-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-download-small:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-download-small .material-symbols-rounded {
    font-size: 20px;
}

/* ========================================
   Version History / Changelog
   ======================================== */
.version-history {
    max-width: 900px;
    margin: 0 auto 64px;
}

.changelog {
    position: relative;
}

.changelog-entry {
    display: flex;
    gap: 24px;
}

.changelog-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--border);
    z-index: 1;
}

.marker-dot.current {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 0 12px rgba(255, 59, 48, 0.4);
}

.marker-dot.upcoming {
    background: var(--text-muted);
    box-shadow: 0 0 0 2px var(--text-muted);
}

.marker-line {
    flex: 1;
    width: 2px;
    background: var(--border);
    margin: 8px 0;
}

.changelog-content {
    flex: 1;
    padding-bottom: 48px;
}

.changelog-entry:last-child .changelog-content {
    padding-bottom: 0;
}

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

.changelog-version {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-num {
    font-size: 22px;
    font-weight: 700;
}

.version-badge {
    padding: 4px 10px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-badge.upcoming {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text-muted);
}

.changelog-date {
    font-size: 14px;
    color: var(--text-muted);
}

.changelog-body {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.changelog-entry.upcoming .changelog-body {
    opacity: 0.7;
    border-style: dashed;
}

.changelog-summary {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.changelog-section {
    margin-top: 20px;
}

.changelog-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.changelog-section h4 .material-symbols-rounded {
    font-size: 18px;
    color: var(--primary);
}

.changelog-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-section ul li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.changelog-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
}

.changelog-section ul li:last-child {
    margin-bottom: 0;
}

/* ========================================
   Subscribe Section
   ======================================== */
.updates-subscribe {
    max-width: 900px;
    margin: 0 auto;
}

.subscribe-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}

.subscribe-card > .material-symbols-rounded {
    font-size: 40px;
    color: var(--primary);
    flex-shrink: 0;
}

.subscribe-content {
    flex: 1;
}

.subscribe-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subscribe-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.btn-subscribe:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-subscribe .material-symbols-rounded {
    font-size: 18px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subscribe-card {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .status-page {
        padding: 100px 0 60px;
    }
    
    .status-header h1 {
        font-size: 32px;
    }
    
    .status-card.main-status {
        padding: 28px;
    }
    
    .status-indicator {
        font-size: 16px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .version-card {
        padding: 24px;
    }
    
    .version-number {
        font-size: 26px;
    }
    
    .version-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .changelog-entry {
        gap: 16px;
    }
    
    .changelog-marker {
        width: 16px;
    }
    
    .marker-dot {
        width: 12px;
        height: 12px;
    }
    
    .version-num {
        font-size: 18px;
    }
    
    .changelog-body {
        padding: 20px;
    }
    
    .subscribe-card {
        padding: 24px;
    }
    
    .subscribe-card > .material-symbols-rounded {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .status-header h1 {
        font-size: 28px;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-download-small {
        width: 100%;
        justify-content: center;
    }
    
    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }
}
