:root {
    --color-red: #e74c3c;
    --color-orange: #f39c12;
    --color-teal: #1abc9c;
    --color-blue: #3498db;
    --color-green: #27ae60;
    --rgb-color-red: 231, 76, 60;
    --rgb-color-orange: 243, 156, 18;
    --rgb-color-teal: 26, 188, 156;
    --rgb-color-blue: 52, 152, 219;
    --rgb-color-green: 39, 174, 96;
    --color-bg: #141414;
    --color-text-primary: #909497;
    --color-text-heading: #f1f1f1;
    --color-text-secondary: #626567;
    --color-block-bg: #1e1e1e;
    --color-border: rgba(255, 255, 255, .07);
    --color-uptime-bar-empty-bg: #424949;
    --color-tooltip-bg: #1e1e1e;
    --color-btn-secondary-bg: transparent;
    --color-btn-secondary-hover-bg: #232323;
    --color-btn-secondary-active-bg: #1e1e1e;
    --color-btn-secondary-border: rgba(255, 255, 255, .13);
    --size-container-width: 864px;
    --size-logo-width: 130px;
    --size-logo-height: 130px;
    --size-uptime-bar-height: 24px;
    --spacing-4: .25rem;
    --spacing-8: .5rem;
    --spacing-12: .75rem;
    --spacing-16: 1rem;
    --spacing-20: 1.25rem;
    --spacing-24: 1.5rem;
    --spacing-32: 2rem;
    --border-radius-200: .35rem;
    --border-radius-400: .475rem;
    --border-radius-500: 1.4rem;
    --font-size-50: 0.75rem;
    --font-size-100: .875rem;
    --font-size-300: 1.125rem;
    --font-size-350: 1.25rem;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-line-height-200: var(--spacing-24);
    --shadow-filter: rgba(0, 0, 0, .05) 0px 1px 6px 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* Fundal cu imagine - EXACT ca pagina principală */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.adelin.org/public/wp/status-wp/abstract-gradient-background-wallpaper_792836-371234.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: blur(50px);
    transform: scale(1.1);
    z-index: -2;
    transition: filter 2s ease;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    max-width: var(--size-container-width);
    margin: 0 auto;
    padding: var(--spacing-32) var(--spacing-20) 0;
    background: transparent;
}

.title-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.logo-wrapper {
    margin-bottom: 0.4rem;
}

.logo {
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title-flex h1 {
    display: block !important;
    margin-top: -40px !important;
    color: var(--color-text-heading) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 4.3rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.4px !important;
}






/* =====================================================
   STATISTICI - IDENTICE CU PAGINA PRINCIPALĂ
   ===================================================== */

.stats-container {
    margin: 24px 0 40px 0;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(65, 65, 70, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(65, 65, 70, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    background: rgba(39, 174, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #27ae60;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-item:nth-child(2) .stat-icon {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.stat-item:nth-child(3) .stat-icon {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.stat-item:nth-child(4) .stat-icon {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #f1f1f1;
    font-family: 'Sora', sans-serif;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: #909497;
    font-weight: 500;
    line-height: 1.3;
}

/* =====================================================
   LISTA INCIDENTE
   ===================================================== */

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-height: 200px;
}

.incidents-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: #909497;
}

.incident-month-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.incident-month-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #f1f1f1;
    font-family: 'Sora', sans-serif;
    margin: 0 0 12px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: -0.5px;
}

.incident-month-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}








.incident-row {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(45, 45, 50, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 12px;
}

.incident-row:last-child {
    margin-bottom: 0;
}

.incident-row:hover {
    background: rgba(55, 55, 60, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.incident-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.incident-row-icon.resolved {
    background: rgba(243, 156, 18, 0.12);
    border-color: rgba(243, 156, 18, 0.35);
    color: #f39c12;
}

.incident-row-icon.ongoing {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.35);
    color: #e74c3c;
}

.incident-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.incident-row-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f39c12;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
    cursor: pointer;
}

.incident-row:hover .incident-row-title {
    color: #f5b041;
}

.incident-row-icon.ongoing ~ .incident-row-content .incident-row-title {
    color: #e74c3c;
}

.incident-row-icon.ongoing ~ .incident-row-content:hover .incident-row-title {
    color: #ff6b6b;
}

.incident-row-description {
    font-size: 0.92rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

.incident-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #808890;
    font-size: 0.82rem;
    margin-top: 4px;
    font-weight: 500;
    flex-wrap: wrap;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #909497;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 12px auto 0 auto;
    width: auto;
    max-width: fit-content;
}

.show-more-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f1f1;
}

.show-more-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.no-incidents {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 20px;
    color: #909497;
    text-align: center;
    background: rgba(35, 35, 40, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.no-incidents i {
    font-size: 3.5rem;
    opacity: 0.3;
    color: #27ae60;
}

.no-incidents p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* =====================================================
   BUTON BACK - SUB STATISTICI (pill cu text)
   ===================================================== */

.back-btn-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin-top: -15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(65, 65, 70, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    
    color: #f1f1f1;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}
.back-btn:hover {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    text-align: center;
    margin-top: 10px;
    color: #909497b0;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.footer p {
    margin: 10px 0;
    color: #909497;
    font-weight: 400;
    letter-spacing: 0.2px;
}

footer {
    margin: var(--spacing-32) 0;
    color: var(--color-text-secondary);
    text-align: center;
}













/* =====================================================
   SKELETON LOADING — TIMELINE
   ===================================================== */

.skeleton-incident {
    pointer-events: none;
}

/* Dot-ul skeleton */
.skeleton-incident .incident-timeline-dot.skeleton-box-round {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Ascunde linia verticală între elemente pentru skeleton */
.skeleton-incident:not(.skeleton-last)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.04);
}

.skeleton-incident.skeleton-last {
    padding-bottom: 0;
}

/* Content skeleton */
.skeleton-incident .incident-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding-top: 4px;
}

.skeleton-line.skeleton-incident-title {
    display: block;
    width: 55%;
    height: 20px;
    border-radius: 6px;
}

.skeleton-line.skeleton-incident-desc {
    display: block;
    width: 90%;
    height: 12px;
    border-radius: 4px;
}

.skeleton-line.skeleton-incident-desc.short {
    width: 60%;
}

.skeleton-incident .incident-timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.skeleton-line.skeleton-incident-tag {
    display: block;
    width: 80px;
    height: 18px;
    border-radius: 12px;
}

.skeleton-line.skeleton-incident-meta {
    display: block;
    width: 140px;
    height: 12px;
    border-radius: 4px;
}

/* Responsive skeleton timeline */
@media (max-width: 768px) {
    .skeleton-incident .incident-timeline-dot.skeleton-box-round {
        width: 28px;
        height: 28px;
    }
    
    .skeleton-incident:not(.skeleton-last)::before {
        left: 13px;
        top: 28px;
    }
    
    .skeleton-line.skeleton-incident-title {
        height: 18px;
    }
    
    .skeleton-line.skeleton-incident-desc {
        height: 10px;
    }
    
    .skeleton-line.skeleton-incident-tag {
        width: 70px;
        height: 16px;
    }
    
    .skeleton-line.skeleton-incident-meta {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .skeleton-incident .incident-timeline-dot.skeleton-box-round {
        width: 24px;
        height: 24px;
        border-width: 1.5px;
    }
    
    .skeleton-incident:not(.skeleton-last)::before {
        left: 11px;
        top: 24px;
    }
    
    .skeleton-line.skeleton-incident-title {
        width: 70%;
    }
    
    .skeleton-line.skeleton-incident-tag {
        width: 60px;
        height: 14px;
    }
    
    .skeleton-line.skeleton-incident-meta {
        width: 100px;
    }
    
    .skeleton-incident .incident-timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Light mode skeleton */
html.light .skeleton-incident .incident-timeline-dot.skeleton-box-round,
html.light .skeleton-incident:not(.skeleton-last)::before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 100%
    );
    background-size: 200% 100%;
}











/* =====================================================
   RESPONSIVE - MOBIL (IDENTIC CU PAGINA PRINCIPALĂ)
   ===================================================== */

@media (max-width: 768px) {
.container {
    max-width: var(--size-container-width);
    margin: 0 auto;
    padding: var(--spacing-32) var(--spacing-20) 0;
    background: transparent;
}
    
    .title-flex {
        margin-bottom: 1.5rem !important;
    }
    
    .logo {
        width: 150px !important;
        height: 150px !important;
    }
    
    .logo-wrapper {
        margin-bottom: -1.5rem !important;
    }
    
    .title-flex h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
        margin-top: 5px !important;
    }
    
    .stats-container {
        margin: 20px 0 30px 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .stat-item {
        padding: 20px !important;
        /* gap: 14px !important;
        border-radius: 30px !important; */
    }
    
    .stat-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    .incidents-list {
        gap: 32px !important;
    }
    
    .incident-month-title {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 12px !important;
    }
    
    .incident-month-items {
        gap: 10px !important;
    }
    
    .incident-row {
        gap: 14px !important;
        padding: 16px 18px !important;
        border-radius: 25px !important;
        margin-bottom: 10px !important;
    }
    
    .incident-row-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .incident-row-title {
        font-size: 1rem !important;
    }
    
    .incident-row-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .incident-row-meta {
        font-size: 0.75rem !important;
        gap: 6px !important;
    }
    
    .show-more-btn {
        font-size: 0.8rem !important;
        padding: 10px 16px !important;
        margin: 10px auto 0 auto !important;
    }
    
    .no-incidents {
        padding: 50px 16px !important;
    }
    
    .no-incidents i {
        font-size: 2.5rem !important;
    }
    
    .no-incidents p {
        font-size: 1rem !important;
    }
    
    .footer {
        margin-top: 30px !important;
    }
    
    .footer p {
        font-size: 13px !important;
    }
    
    .skeleton-stat .skeleton-box {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
    
    .skeleton-line.skeleton-value {
        width: 50px;
        height: 20px;
    }
    
    .skeleton-line.skeleton-label {
        width: 80px;
        height: 10px;
    }
    
    .skeleton-line.skeleton-title {
        width: 140px;
        height: 22px;
    }
    
    .skeleton-box-round {
        width: 28px;
        height: 28px;
    }
    
    .skeleton-line.skeleton-incident-title {
        height: 16px;
    }
    
    .skeleton-line.skeleton-incident-desc {
        height: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px 0 !important;
    }
    
    .logo {
        width: 120px !important;
        height: 120px !important;
    }
    
    .title-flex h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .stat-item {
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 24px !important;
    }
    
    .stat-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.3rem !important;
        border-radius: 14px !important;
    }
    
    .stat-value {
        font-size: 1.3rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
    
    .incidents-list {
        gap: 28px !important;
        padding: 0px 10px;
    }
    
    .incident-month-title {
        font-size: 1.3rem !important;
    }
    
    .incident-row {
        gap: 12px !important;
        padding: 14px 14px !important;
        border-radius: 14px !important;
    }
    
    .incident-row-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.7rem !important;
    }
    
    .incident-row-title {
        font-size: 0.95rem !important;
    }
    
    .incident-row-description {
        font-size: 0.8rem !important;
    }
    
    .incident-row-meta {
        font-size: 0.7rem !important;
    }
    
    .show-more-btn {
        font-size: 0.75rem !important;
        padding: 9px 14px !important;
    }
    
    .footer p {
        font-size: 12px !important;
    }
    
    .skeleton-stat .skeleton-box {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    
    .skeleton-line.skeleton-title {
        width: 120px;
        height: 20px;
    }
    
    .skeleton-line.skeleton-incident-title {
        width: 70%;
    }
}








@keyframes gentleAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.incidents-list.loaded,
.stats-grid.loaded {
    animation: gentleAppear 0.3s ease-out forwards;
}






/* =====================================================
   TITLE PAGINĂ
   ===================================================== */

.page-title-wrapper {
    margin: 0 0 24px 0;
    padding: 0;
}

.page-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-heading);
    letter-spacing: -0.5px;
    margin: 0;
}

@media (max-width: 768px) {
    .page-title-wrapper { margin-bottom: 20px; }
    .page-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .page-title { font-size: 1.5rem; }
}


/* =====================================================
   LIGHT MODE pentru pagina Incidente
   ===================================================== */

html.light body {
    background-color: #f4f5f7;
    color: #566573;
}

html.light body::before {
    background-image: url('https://cdn.adelin.org/public/wp/status-wp/3i89u63i89u63i89-light-v4-b.png');
    filter: blur(70px) brightness(1.05) saturate(1.1);
}

html.light body::after {
    background: rgba(255, 255, 255, 0.25);
}

html.light .site-header { border-bottom-color: rgba(0, 0, 0, 0.08); }
html.light .brand-name { color: #141414; }
html.light .page-title { color: #141414; }

html.light .back-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.light .back-btn:hover {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.2);
}

html.light .stat-item {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.light .stat-item:hover { background: rgba(255, 255, 255, 0.95); }
html.light .stat-value { color: #141414; }
html.light .stat-label { color: #626567; }

html.light .incident-month-title {
    color: #141414;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light .incident-row {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.light .incident-row:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}

html.light .incident-row-title { color: #b9770e; }
html.light .incident-row:hover .incident-row-title { color: #9c640c; }
html.light .incident-row-icon.ongoing ~ .incident-row-content .incident-row-title { color: #c0392b; }
html.light .incident-row-icon.ongoing ~ .incident-row-content:hover .incident-row-title { color: #922b21; }
html.light .incident-row-description { color: #566573; }
html.light .incident-row-meta { color: #909497; }

html.light .show-more-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    color: #626567;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .show-more-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #141414;
    border-color: rgba(0, 0, 0, 0.12);
}

html.light .no-incidents {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    color: #626567;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.light .no-incidents i { color: #27ae60; }

html.light footer,
html.light .footer,
html.light .footer p { color: #909497; }

html.light .skeleton-line,
html.light .skeleton-box,
html.light .skeleton-box-round {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 100%
    );
}

/* Tranziții line la schimbarea temei */
html, body, .site-header, .brand-name, .page-title, .back-btn,
.stat-item, .incident-row, .incident-month-title, .incident-row-title,
.incident-row-description, .incident-row-meta, .show-more-btn,
.no-incidents, .footer, .footer p {
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}








html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: -1;
    transition: background 0.4s ease;
}







/* =====================================================
   INCIDENT TIMELINE — ca pe GitHub Status
   ===================================================== */

.incident-month-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Container pentru fiecare incident */
.incident-timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 0 0 32px 0;
}

.incident-timeline-item:last-child {
    padding-bottom: 0;
}

/* Linia verticală continuă (doar între elemente) */
.incident-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;         /* centrat pe dot (34px / 2 = 17px) */
    top: 34px;          /* începe sub dot */
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

/* Dot-ul cu iconiță */
.incident-timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: rgba(45, 45, 50, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 2px;
}

.incident-timeline-item.resolved .incident-timeline-dot {
    background: rgba(39, 174, 96, 0.15);
    border-color: #27ae60;
    color: #27ae60;
}

.incident-timeline-item.ongoing .incident-timeline-dot {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    color: #e74c3c;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
}

/* Content */
.incident-timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding-top: 4px;
}

.incident-timeline-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f39c12;      /* galben-portocaliu ca pe GitHub */
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.incident-timeline-title:hover {
    color: #f5b041;
}

.incident-timeline-item.ongoing .incident-timeline-title {
    color: #e74c3c;
}

.incident-timeline-item.ongoing .incident-timeline-title:hover {
    color: #ff6b6b;
}

.incident-timeline-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

.incident-timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.incident-service-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #909497;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.incident-timeline-item.ongoing .incident-service-tag {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
    color: #f1948a;
}

.incident-timeline-date {
    font-size: 0.85rem;
    color: #808890;
    font-weight: 500;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .incident-timeline-item {
        gap: 14px;
        padding-bottom: 24px;
    }
    
    .incident-timeline-dot {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
    
    .incident-timeline-item:not(:last-child)::before {
        left: 13px;
        top: 28px;
    }
    
    .incident-timeline-title {
        font-size: 1.05rem;
    }
    
    .incident-timeline-description {
        font-size: 0.88rem;
    }
    
    .incident-timeline-meta {
        gap: 8px;
    }
    
    .incident-service-tag {
        font-size: 0.68rem;
        padding: 2px 8px;
    }
    
    .incident-timeline-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .incident-timeline-item {
        gap: 12px;
        padding-bottom: 20px;
    }
    
    .incident-timeline-dot {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        border-width: 1.5px;
    }
    
    .incident-timeline-item:not(:last-child)::before {
        left: 11px;
        top: 24px;
    }
    
    .incident-timeline-title {
        font-size: 0.98rem;
    }
    
    .incident-timeline-description {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    
    .incident-timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .incident-service-tag {
        font-size: 0.62rem;
        padding: 2px 7px;
    }
    
    .incident-timeline-date {
        font-size: 0.72rem;
    }
}


/* =====================================================
   LIGHT MODE
   ===================================================== */

html.light .incident-timeline-item:not(:last-child)::before {
    background: rgba(0, 0, 0, 0.1);
}

html.light .incident-timeline-dot {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .incident-timeline-item.resolved .incident-timeline-dot {
    background: #d4f5e0;
    border-color: #27ae60;
    color: #1e8449;
}

html.light .incident-timeline-item.ongoing .incident-timeline-dot {
    background: #fde4e1;
    border-color: #e74c3c;
    color: #c0392b;
}

html.light .incident-timeline-title {
    color: #b9770e;
}

html.light .incident-timeline-title:hover {
    color: #9c640c;
}

html.light .incident-timeline-item.ongoing .incident-timeline-title {
    color: #c0392b;
}

html.light .incident-timeline-item.ongoing .incident-timeline-title:hover {
    color: #922b21;
}

html.light .incident-timeline-description {
    color: #566573;
}

html.light .incident-service-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #626567;
}

html.light .incident-timeline-item.ongoing .incident-service-tag {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

html.light .incident-timeline-date {
    color: #909497;
}








/* Animația de succes (bifă verde) + dezabonare (X roșu) */
.subscribe-modal-inner { position: relative; width: 100%; }
.subscribe-content { opacity: 1; transform: scale(1); transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.subscribe-content.fade-out { opacity: 0; transform: scale(0.96); pointer-events: none; }
.subscribe-success { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; gap: 10px; opacity: 0; transform: scale(0.92); pointer-events: none; transition: opacity 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1); }
.subscribe-success.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.success-icon-wrapper { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.success-svg { width: 100%; height: 100%; overflow: visible; }
.success-circle { fill: #27ae60; stroke: none; transform-origin: 50% 50%; transform: scale(0); filter: drop-shadow(0 0 20px rgba(39, 174, 96, 0.5)); }
.subscribe-success.visible .success-circle { animation: circlePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards; }
@keyframes circlePop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.success-check { fill: none; stroke: #ffffff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.subscribe-success.visible .success-check { animation: drawCheck 0.3s cubic-bezier(0.65, 0, 0.35, 1) 0.45s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-title { font-family: 'Sora', 'Inter', sans-serif; font-size: 1.75rem; font-weight: 700; color: #f1f1f1; margin: 0 0 10px 0; opacity: 0; transform: translateY(10px); letter-spacing: -0.4px; line-height: 1.25; }
.subscribe-success.visible .success-title { animation: successTextIn 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) 0.7s forwards; }
@keyframes successTextIn { to { opacity: 1; transform: translateY(0); } }
.success-desc { font-family: 'Inter', sans-serif; font-size: 1rem; color: #909497; margin: 0; max-width: 340px; line-height: 1.55; opacity: 0; transform: translateY(8px); }
.subscribe-success.visible .success-desc { animation: successTextIn 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) 0.85s forwards; }
.subscribe-success .success-circle.unsubscribe-circle { fill: #e74c3c; filter: drop-shadow(0 0 16px rgba(231, 76, 60, 0.5)); }
.subscribe-unsubscribe-link { display: block; width: 100%; margin-top: 22px; background: transparent; border: none; color: #909497; font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500; text-align: center; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(144, 148, 151, 0.3); text-underline-offset: 3px; transition: color 0.2s ease; }
.subscribe-unsubscribe-link:hover { color: #e74c3c; }
.subscribe-btn.unsubscribe-submit { background: rgba(231, 76, 60, 0.12); border-color: rgba(231, 76, 60, 0.3); color: #e74c3c; }
.subscribe-btn.unsubscribe-submit:hover { background: rgba(231, 76, 60, 0.2); border-color: rgba(231, 76, 60, 0.5); }
.subscribe-form .cf-turnstile { margin: 12px 0; display: flex; justify-content: center; min-height: 65px; }
html.light .success-title { color: #141414; }
html.light .success-desc { color: #566573; }










.incident-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1.2;
}

.incident-source-badge i {
    font-size: 0.7rem;
}

.incident-source-badge.combined {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.incident-source-badge.manual {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.incident-source-badge.auto {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Light mode */
html.light .incident-source-badge.combined {
    background: rgba(155, 89, 182, 0.12);
    color: #7d3c98;
    border-color: rgba(155, 89, 182, 0.25);
}

html.light .incident-source-badge.manual {
    background: rgba(243, 156, 18, 0.12);
    color: #b9770e;
    border-color: rgba(243, 156, 18, 0.25);
}

html.light .incident-source-badge.auto {
    background: rgba(52, 152, 219, 0.12);
    color: #2471a3;
    border-color: rgba(52, 152, 219, 0.25);
}

/* Mobile */
@media (max-width: 768px) {
    .incident-source-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}