/* Zmienne globalne kolorów i czcionek */
:root {
    --primary-color: #df2f2f;
    --primary-hover: #b92525;
    --text-color: #333333;
    --bg-color: #f4f5f7;
    --content-bg: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset stylów przeglądarki */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Główny kontener strony */
.container {
    max-width: 1000px; 
    width: 100%;
    background-color: var(--content-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Nagłówek */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    max-height: 70px;
    width: auto;
}

.academy-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
}

/* Główna treść */
.content {
    padding: 40px;
}

.info-section h2 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    color: #222;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
}

/* Listy */
.auth-list, .steps-list, .settings-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 25px;
}

.settings-list li {
    margin-bottom: 5px;
}

/* Sekcje systemowe */
.os-section {
    background-color: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
}

.os-section h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* *** Obrazki w treści strony *** */
.screenshot {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Efekt najechania i kursor lupy */
.screenshot-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Kontener dla siatki zdjęć (Android) */
.images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.images-grid .screenshot {
    margin: 0;
    flex: 1 1 300px;
    max-width: 450px;
}

/* *** STYLE LIGHTBOXA (Wyskakujące powiększenie) *** */
.lightbox {
    display: none; /* Ukryte domyślnie */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Ciemne półprzezroczyste tło */
    justify-content: center;
    align-items: center;
    cursor: zoom-out; /* Kursor sugerujący możliwość zamknięcia */
    padding: 20px;
}

.lightbox img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    animation: fadeIn 0.3s ease; /* Płynne pojawianie się okienka */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Ramki z ostrzeżeniami */
.alert, .warning-box {
    background-color: #fff5f5;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.alert p, .warning-box p {
    margin: 0;
}

.alert p {
    color: var(--primary-color);
    font-weight: bold;
}

/* Sekcja Certyfikatów */
.downloads-section {
    background-color: #f4f5f7;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.download-list {
    list-style: none;
    padding: 0;
}

.download-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.download-list p {
    margin: 0;
    flex: 1 1 300px;
}

.cert-details {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 5px;
    word-break: break-all;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* Sekcja Kontaktowa */
.contact-box {
    background-color: #eaf4fc;
    border-left: 4px solid #3498db;
    padding: 25px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 30px;
}

.contact-box h3 {
    margin-top: 0;
    color: #2980b9;
}

.contact-box ul {
    list-style-type: none;
    padding: 0;
}

.contact-box li {
    margin-bottom: 8px;
    color: #333;
}

/* Linki ogólne */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.external-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* Stopka */
.site-footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid var(--border-color);
}

/* Responsywność */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .content {
        padding: 25px 15px;
    }

    .download-list li {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-download {
        width: 100%;
    }
}
