/**
 * Kontakty widget - Styly inspirované MySchool šablonou
 *
 * @package Eobce
 */

/* ========================================
   WRAPPER
   ======================================== */

.eobce-kontakty-wrapper {
    margin: 40px 0;
    display: grid;
    gap: 30px;
}

/* ========================================
   HLAVNÍ KARTA - INFORMACE
   ======================================== */

.kontakty-main-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-top: 5px solid #2c5530;
}

.kontakt-logo {
    text-align: center;
    margin-bottom: 25px;
}

.kontakt-logo img {
    max-width: 200px;
    height: auto;
}

.kontakt-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2e0a13;
    margin: 0 0 30px 0;
}

/* ========================================
   KONTAKTNÍ POLOŽKY
   ======================================== */

.kontakt-items {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.kontakt-item:hover {
    background: #f5f5f5;
    border-left-color: #2c5530;
    transform: translateX(5px);
}

.kontakt-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c5530 0%, #177326 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.kontakt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kontakt-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666666;
}

.kontakt-value {
    font-size: 16px;
    color: #2e0a13;
    font-weight: 500;
    line-height: 1.5;
}

.kontakt-value a,
.kontakt-content a.kontakt-value {
    color: #2c5530;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kontakt-value a:hover,
.kontakt-content a.kontakt-value:hover {
    color: #177326;
    text-decoration: underline;
}

/* ========================================
   ÚŘEDNÍ HODINY
   ======================================== */

.uredni-hodiny-box {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 2px solid #e5c687;
}

.hodiny-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.hodiny-header i {
    font-size: 24px;
    color: #2c5530;
}

.hodiny-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2e0a13;
}

.hodiny-content {
    color: #333333;
    line-height: 1.8;
    font-size: 15px;
}

.hodiny-content p {
    margin: 0 0 8px 0;
}

.hodiny-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   FAKTURAČNÍ ÚDAJE
   ======================================== */

.fakturacni-udaje-box {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 2px solid #2c5530;
}

.faktura-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.faktura-header i {
    font-size: 24px;
    color: #2c5530;
}

.faktura-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2e0a13;
}

.faktura-content {
    color: #333333;
    line-height: 1.8;
    font-size: 15px;
}

.faktura-content p {
    margin: 0 0 8px 0;
}

.faktura-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   SOCIÁLNÍ SÍTĚ
   ======================================== */

.kontakt-social {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-label {
    font-size: 16px;
    font-weight: 600;
    color: #666666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0e5fd8 100%);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #fcaf45 100%);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* ========================================
   VEDENÍ OBCE
   ======================================== */

.kontakty-vedeni {
    margin-top: 10px;
}

.vedeni-title {
    font-size: 24px;
    font-weight: 700;
    color: #2e0a13;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c5530;
}

.vedeni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.osoba-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid #2c5530;
}

.osoba-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.osoba-foto {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.osoba-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.osoba-card:hover .osoba-foto img {
    transform: scale(1.1);
}

.osoba-info {
    padding: 25px;
}

.osoba-funkce {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #2c5530 0%, #177326 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.osoba-jmeno {
    font-size: 20px;
    font-weight: 700;
    color: #2e0a13;
    margin: 0 0 15px 0;
}

.osoba-kontakty {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.osoba-kontakt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.osoba-kontakt:hover {
    color: #2c5530;
    transform: translateX(5px);
}

.osoba-kontakt i {
    font-size: 16px;
    color: #2c5530;
}

/* ========================================
   LAYOUT - COMPACT
   ======================================== */

.layout-compact .kontakty-main-card {
    padding: 30px;
}

.layout-compact .kontakt-title {
    font-size: 24px;
    text-align: left;
}

.layout-compact .kontakt-item {
    padding: 15px;
}

.layout-compact .kontakt-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.layout-compact .vedeni-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.layout-compact .osoba-foto {
    height: 180px;
}

.layout-compact .osoba-info {
    padding: 20px;
}

/* ========================================
   LAYOUT - DETAILED
   ======================================== */

.layout-detailed .eobce-kontakty-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.layout-detailed .kontakt-items {
    gap: 25px;
}

.layout-detailed .kontakt-item {
    padding: 25px;
}

.layout-detailed .vedeni-grid {
    grid-template-columns: 1fr;
}

.layout-detailed .osoba-card {
    display: flex;
    flex-direction: row;
}

.layout-detailed .osoba-foto {
    width: 240px;
    height: auto;
}

/* ========================================
   ANIMACE
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kontakty-main-card {
    animation: fadeInUp 0.6s ease forwards;
}

.kontakty-vedeni {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.osoba-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.osoba-card:nth-child(1) { animation-delay: 0.1s; }
.osoba-card:nth-child(2) { animation-delay: 0.2s; }
.osoba-card:nth-child(3) { animation-delay: 0.3s; }
.osoba-card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .eobce-kontakty-wrapper {
        margin: 20px 0;
        gap: 20px;
    }

    .kontakty-main-card {
        padding: 25px;
    }

    .kontakt-title {
        font-size: 24px;
    }

    .kontakt-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .kontakt-content {
        align-items: center;
    }

    .vedeni-grid {
        grid-template-columns: 1fr;
    }

    .layout-detailed .osoba-card {
        flex-direction: column;
    }

    .layout-detailed .osoba-foto {
        width: 100%;
        height: 220px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kontakty-main-card {
        padding: 20px;
    }

    .kontakt-title {
        font-size: 22px;
    }

    .kontakt-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .vedeni-title {
        font-size: 20px;
    }

    .osoba-foto {
        height: 200px;
    }

    .osoba-info {
        padding: 20px;
    }

    .osoba-jmeno {
        font-size: 18px;
    }
}
