/* ======================================================
   CSS STYLESHEET
====================================================== */
/* ZDEFINIOWANIE CZCIONKI FLOWBLOCK */
@font-face {
    font-family: 'FlowBlock';
    src: url('FlowBlock-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Jeśli masz bold, dodaj:
@font-face {
    font-family: 'FlowBlock';
    src: url('FlowBlock-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
} 
*/

/* ======================================================
   GLOBAL STYLES
   Applies to all elements and sets base box-sizing
====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================================
   LAYOUT STYLES
   HTML, BODY sizing and fonts
====================================================== */
html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'FlowBlock', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
    font-size: 16px;
    line-height: 1.5;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 24px;
    height: 24px;
    background: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.company-name {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.status-type {
    font-size: 12px;
    color: #888;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.hero {
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.status-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.services-grid {
    display: grid;
    gap: 32px;
}

.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.service:hover {
    background: #f5f5f5;
    transition: background 0.2s ease;
}

.service-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-operational {
    background: #ecfdf5;
    color: #065f46;
}

.badge-degraded {
    background: #fffbeb;
    color: #92400e;
}

.badge-outage {
    background: #fef2f2;
    color: #991b1b;
}

.uptime-display {
    text-align: center;
}

.uptime-percentage {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.uptime-label {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-container {
    position: relative;
    height: 200px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-up {
    background: #10b981;
}

.dot-degraded {
    background: #f59e0b;
}

.dot-down {
    background: #ef4444;
}

footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        width: 100%;
    }

    .header-right {
        width: 100%;
        gap: 12px;
        font-size: 12px;
    }

    main {
        padding: 40px 24px;
    }

    .hero {
        margin-bottom: 48px;
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .meta-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .service {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .service-info h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .service-stats {
        gap: 16px;
    }

    .stat-row {
        padding-bottom: 8px;
        font-size: 12px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 13px;
    }

    .uptime-display {
        padding: 8px 0;
    }

    .uptime-percentage {
        font-size: 36px;
    }

    .uptime-label {
        font-size: 10px;
    }

    .chart-container {
        height: 180px;
        margin-top: 16px;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px;
    }

    .footer-left {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .status-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 12px 16px;
    }

    .header-right {
        display: none;
    }

    .logo {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .company-name {
        font-size: 14px;
    }

    .status-type {
        font-size: 11px;
    }

    main {
        padding: 24px 16px;
    }

    .hero {
        margin-bottom: 32px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-meta {
        gap: 12px;
        padding: 12px 0;
    }

    .meta-item {
        padding: 0;
    }

    .meta-label {
        font-size: 11px;
    }

    .meta-value {
        font-size: 14px;
    }

    .status-section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .service {
        padding: 16px;
        gap: 16px;
        border-radius: 6px;
    }

    .service-info h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .service-stats {
        gap: 12px;
    }

    .stat-row {
        padding-bottom: 8px;
        font-size: 12px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 13px;
    }

    .uptime-display {
        padding: 8px 0;
    }

    .uptime-percentage {
        font-size: 28px;
    }

    .uptime-label {
        font-size: 10px;
    }

    .chart-container {
        height: 140px;
    }

    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    footer {
        padding: 20px 16px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    main {
        padding: 16px 12px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 13px;
    }

    .service {
        padding: 12px;
    }

    .service-info h3 {
        font-size: 14px;
    }

    .uptime-percentage {
        font-size: 24px;
    }

    .chart-container {
        height: 120px;
    }
}