/* Style dla stron zmiany czasu */

/* Sekcja główna */
.zmiana-czasu-container {
    padding: 15px;
    line-height: 1.6;
}

.zmiana-czasu-container strong {
    font-weight: 700;
}

/* Style dla nowych sekcji w wariancie hybrydowym */
.sekcja-dynamiczna {
    border-bottom: 2px dashed #f9ba3e;
    margin-bottom: 2em;
    padding-bottom: 1.5em;
}

.sekcja-tematyczna {
    background-color: #f9f9f9;
    padding: 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
    border-left: 4px solid #f9ba3e;
}

.sekcja-wspolna {
    background-color: #f5f5f5;
    padding: 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
}

/* Style dla zajawki odsyłającej do najbliższej zmiany czasu */
.najblizszaZmiana-zajawka {
    display: flex;
    background-color: #fff8e6;
    border: 1px solid #f9ba3e;
    border-radius: 6px;
    padding: 1.2em;
    margin-bottom: 2em;
    box-shadow: 0 2px 8px rgba(249, 186, 62, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.najblizszaZmiana-zajawka:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(249, 186, 62, 0.3);
}

.zajawka-ikona {
    flex: 0 0 60px;
    font-size: 2.5em;
    color: #6E3A0E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zajawka-tresc {
    flex: 1;
    padding-left: 1em;
}

.zajawka-tresc h3 {
    margin-top: 0;
    color: #6E3A0E;
    font-size: 1.3em;
    margin-bottom: 0.5em;
}

.zajawka-tresc p {
    margin-bottom: 0.8em;
}

.zajawka-link {
    display: inline-block;
    background-color: #f9ba3e;
    color: #6E3A0E;
    padding: 0.5em 1em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.zajawka-link:hover {
    background-color: #ffcc5c;
    text-decoration: none;
}

/* Responsywność dla zajawki */
@media screen and (max-width: 600px) {
    .najblizszaZmiana-zajawka {
        flex-direction: column;
        text-align: center;
    }
    
    .zajawka-ikona {
        margin-bottom: 1em;
    }
    
    .zajawka-tresc {
        padding-left: 0;
    }
}

/* Sekcja z zegarami */
.zegary-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 2em 0;
    gap: 2em;
}

.zegar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
    min-height: 380px;
}

.zegar-title {
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #6E3A0E;
}

/* Stylizacja zegarów analogowych */
.analog-clock {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #fff;
    border: 5px solid #f9ba3e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1em;
}

.active-clock {
    border-color: #6E3A0E;
    box-shadow: 0 0 15px rgba(249, 186, 62, 0.8);
}

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Cyfry na tarczy zegara */
.clock-digit {
    position: absolute;
    width: 20px;
    height: 20px;
    text-align: center;
    font-weight: bold;
    color: #333;
    transform-origin: center;
}


/* Pozycje poszczególnych cyfr */
.digit-1 { top: 10%; right: 25%; }
.digit-2 { top: 25%; right: 10%; }
.digit-3 { top: 50%; right: 5%; transform: translateY(-50%); }
.digit-4 { bottom: 25%; right: 10%; }
.digit-5 { bottom: 10%; right: 25%; }
.digit-6 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.digit-7 { bottom: 10%; left: 25%; }
.digit-8 { bottom: 25%; left: 10%; }
.digit-9 { top: 50%; left: 5%; transform: translateY(-50%); }
.digit-10 { top: 25%; left: 10%; }
.digit-11 { top: 10%; left: 25%; }
.digit-12 { top: 5%; left: 50%; transform: translateX(-50%); }


.hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 50% 0%;
}

.hour {
    width: 6px;
    height: 60px;
    margin-left: -3px;
    background-color: #222;
    border-radius: 4px;
}

.minute {
    width: 4px;
    height: 80px;
    margin-left: -2px;
    background-color: #444;
    border-radius: 3px;
}

.second {
    width: 2px;
    height: 90px;
    margin-left: -1px;
    background-color: #f44336;
    border-radius: 2px;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    margin-left: -6px;
    background-color: #6E3A0E;
    border-radius: 50%;
}

/* Markery godzin */
.analog-clock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

/* Wyświetlacz cyfrowy */
.digital-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    padding: 0.5em 0;
}

.active-time {
    color: #6E3A0E;
    text-shadow: 0 0 5px rgba(249, 186, 62, 0.5);
}

/* Tekst pod zegarem */
.clock-info {
    min-height: 60px;
}

.clock-info small {
    display: block;
    color: #777;
    font-size: 0.8em;
    margin-top: 0.5em;
}

/* FAQ */
.faq-section {
    margin: 2em 0;
    border-top: 1px solid #eee;
    padding-top: 2em;
}

.faq-item {
    margin-bottom: 0;
    padding: 1.2em 0;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: #6E3A0E;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.faq-answer {
    padding-left: 1em;
    border-left: 3px solid #f9ba3e;
}

/* Najbliższa zmiana czasu */
.najblizsza-zmiana {
    background-color: #f9f5e8;
    padding: 1em;
    border-radius: 5px;
    border-left: 5px solid #f9ba3e;
    margin: 1.5em 0;
}

/* Informacje o obowiązującym czasie */
.obowiazujacy-czas {
    background-color: #f0f0f0;
    padding: 1em;
    border-radius: 5px;
    margin: 1.5em 0;
}

/* Legislacyjna - separator dolny */
.legislacyjna-section {
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    border-bottom: 2px solid #e0e0e0;
}

/* Historia - timeline style */
.historia-section {
    margin: 2em 0;
    border-left: 3px solid #f9ba3e;
    padding-left: 1.5em;
}

.historia-section p {
    position: relative;
    margin-bottom: 1.2em;
}

.historia-section p::before {
    content: '';
    position: absolute;
    left: -1.85em;
    top: 0.45em;
    width: 10px;
    height: 10px;
    background: #f9ba3e;
    border-radius: 50%;
}

/* Tabela z datami zmiany czasu */
.zmiana-czasu-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.zmiana-czasu-tabela th,
.zmiana-czasu-tabela td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.zmiana-czasu-tabela th {
    background-color: #f9ba3e;
    color: #6E3A0E;
}

.zmiana-czasu-tabela tr:hover {
    background-color: #f9f5e8;
}

.zmiana-czasu-slonce-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 0.5em;
}

/* Formularz wyszukiwarki miasta */
.zmiana-czasu-miasto-form { margin-top: 1em; }
.zmiana-czasu-miasto-form label { display: block; font-weight: bold; margin-bottom: 0.3em; }
.zmiana-czasu-miasto-form input[type="text"] { width: 100%; padding: 6px; margin-bottom: 0.5em; box-sizing: border-box; }
.zmiana-czasu-miasto-form select { width: 100%; margin-bottom: 0.5em; }

/* Responsywność */
@media screen and (max-width: 600px) {
    .zegary-container {
        flex-direction: column;
        align-items: center;
    }
    
    .analog-clock {
        width: 150px;
        height: 150px;
    }
    
    .hour {
        height: 45px;
    }
    
    .minute {
        height: 60px;
    }
    
    .second {
        height: 70px;
    }
    
    .analog-clock::after {
        width: 140px;
        height: 140px;
    }
    
    .zmiana-czasu-tabela {
        font-size: 0.9em;
    }

    .zmiana-czasu-tabela th,
    .zmiana-czasu-tabela td {
        padding: 6px;
    }

    .zmiana-czasu-tabela th:nth-child(3),
    .zmiana-czasu-tabela td:nth-child(3),
    .zmiana-czasu-tabela th:nth-child(5),
    .zmiana-czasu-tabela td:nth-child(5) {
        display: none;
    }
} 