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

/* ========================================
   KONTEJNER
   ======================================== */

.eobce-akce-wrapper {
    margin: 40px 0;
    display: grid;
    gap: 25px;
}

/* ========================================
   PRÁZDNÝ STAV
   ======================================== */

.eobce-akce-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #999999;
}

.eobce-akce-empty i {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.eobce-akce-empty p {
    margin: 0;
    font-size: 18px;
}

/* ========================================
   POLOŽKA AKCE - ZÁKLADNÍ
   ======================================== */

.eobce-akce-item {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    gap: 25px;
    padding: 25px;
    border-left: 4px solid #2c5530;
}

.eobce-akce-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   DATUM BADGE
   ======================================== */

.akce-date-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5530 0%, #177326 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
    transition: all 0.3s ease;
}

.eobce-akce-item:hover .akce-date-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

.akce-date-badge .date-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.akce-date-badge .date-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.akce-date-badge .date-year {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* ========================================
   OBSAH AKCE
   ======================================== */

.akce-content {
    flex: 1;
    min-width: 0;
}

.akce-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.akce-title a {
    color: #2e0a13;
    text-decoration: none;
    transition: color 0.3s ease;
}

.akce-title a:hover {
    color: #2c5530;
}

/* ========================================
   META ÚDAJE
   ======================================== */

.akce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.akce-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666666;
}

.akce-meta .meta-item i {
    font-size: 16px;
    color: #2c5530;
}

.akce-meta .meta-item.time {
    font-weight: 600;
    color: #333333;
}

/* ========================================
   EXCERPT
   ======================================== */

.akce-excerpt {
    margin-bottom: 15px;
    color: #666666;
    line-height: 1.6;
    font-size: 15px;
}

.akce-excerpt p {
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.akce-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.akce-button,
.akce-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.akce-button {
    background: linear-gradient(135deg, #2c5530 0%, #177326 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2);
}

.akce-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.4);
    color: #ffffff;
}

.akce-map-link {
    background: #ffffff;
    color: #2c5530;
    border: 2px solid #2c5530;
}

.akce-map-link:hover {
    background: #2c5530;
    color: #ffffff;
}

.akce-button i,
.akce-map-link i {
    font-size: 16px;
}

/* ========================================
   LAYOUT - CARDS (s obrázkem)
   ======================================== */

.layout-cards .eobce-akce-item {
    flex-wrap: wrap;
}

.layout-cards .akce-thumbnail {
    width: 100%;
    height: 200px;
    margin: -25px -25px 0 -25px;
    overflow: hidden;
}

.layout-cards .akce-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.layout-cards .eobce-akce-item:hover .akce-thumbnail img {
    transform: scale(1.05);
}

.layout-cards .akce-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
}

.layout-cards .eobce-akce-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* ========================================
   LAYOUT - TIMELINE
   ======================================== */

.layout-timeline .eobce-akce-item {
    position: relative;
    padding-left: 140px;
}

.layout-timeline .akce-date-badge {
    position: absolute;
    left: 25px;
    top: 25px;
}

.layout-timeline .eobce-akce-item::before {
    content: '';
    position: absolute;
    left: 65px;
    top: 110px;
    bottom: -25px;
    width: 2px;
    background: linear-gradient(180deg, #2c5530 0%, transparent 100%);
}

.layout-timeline .eobce-akce-item:last-child::before {
    display: none;
}

/* ========================================
   MINULÉ AKCE
   ======================================== */

.eobce-akce-item.past-event {
    opacity: 0.65;
}

.eobce-akce-item.past-event .akce-date-badge {
    background: linear-gradient(135deg, #999999 0%, #777777 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.eobce-akce-item.past-event:hover .akce-date-badge {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.eobce-akce-item.past-event::after {
    content: 'Proběhlo';
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.eobce-akce-item {
    animation: fadeInUp 0.6s ease forwards;
}

.eobce-akce-item:nth-child(1) { animation-delay: 0.1s; }
.eobce-akce-item:nth-child(2) { animation-delay: 0.2s; }
.eobce-akce-item:nth-child(3) { animation-delay: 0.3s; }
.eobce-akce-item:nth-child(4) { animation-delay: 0.4s; }
.eobce-akce-item:nth-child(5) { animation-delay: 0.5s; }

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

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

    .eobce-akce-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .akce-date-badge {
        width: 70px;
        height: 70px;
    }

    .akce-date-badge .date-day {
        font-size: 28px;
    }

    .akce-title {
        font-size: 19px;
    }

    .akce-meta {
        flex-direction: column;
        gap: 10px;
    }

    .akce-footer {
        width: 100%;
    }

    .akce-button,
    .akce-map-link {
        flex: 1;
        justify-content: center;
    }

    .layout-cards .eobce-akce-wrapper {
        grid-template-columns: 1fr;
    }

    .layout-timeline .eobce-akce-item {
        padding-left: 25px;
    }

    .layout-timeline .akce-date-badge {
        position: static;
        margin-bottom: 15px;
    }

    .layout-timeline .eobce-akce-item::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .akce-date-badge {
        width: 60px;
        height: 60px;
    }

    .akce-date-badge .date-day {
        font-size: 24px;
    }

    .akce-date-badge .date-month {
        font-size: 12px;
    }

    .akce-title {
        font-size: 17px;
    }
}
