/* ========================================
   Akce nositelů pivní kultury
   Light theme with pivnikultura.cz accents
   ======================================== */

#akce-kalendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    color: #333333;
}

/* ---- Calendar Header ---- */

.akce-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 4px;
}

.akce-month-label {
    font-family: 'Afacad', 'Roboto Slab', serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #D09D46;
    cursor: pointer;
}

.akce-nav-prev,
.akce-nav-next {
    background: none;
    border: 2px solid #D09D46;
    color: #D09D46;
    font-size: 1.3em;
    line-height: 1;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.akce-nav-prev:hover,
.akce-nav-next:hover {
    background: #D09D46;
    color: #fff;
}

.akce-nav-prev:focus,
.akce-nav-next:focus,
.akce-nav-prev:active,
.akce-nav-next:active {
    background: #D09D46;
    color: #fff;
    border-color: #D09D46;
    outline: none;
    box-shadow: none;
}

/* ---- Calendar Grid ---- */

.akce-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.akce-day-header {
    text-align: center;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 0.85em;
    color: #7A7A7A;
    padding: 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F5F5F0;
    border-bottom: 1px solid #e0e0e0;
}

.akce-day-cell {
    text-align: center;
    padding: 12px 4px;
    font-size: 0.95em;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #555;
    transition: all 0.2s ease;
    min-height: 42px;
    position: relative;
}

.akce-day-cell:nth-child(7n) {
    border-right: none;
}

.akce-day-empty {
    background: #FAFAFA;
    color: transparent;
}

.akce-day-cell.has-event {
    background: #D09D46;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.akce-day-cell.has-event:hover {
    background: #c08d3a;
}

.akce-day-cell.today {
    font-weight: 700;
    color: #D09D46;
    box-shadow: inset 0 0 0 2px #D09D46;
}

.akce-day-cell.today.has-event {
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

.akce-day-cell.selected {
    background: #333;
    color: #fff;
    font-weight: 700;
}

.akce-day-cell.selected.has-event {
    background: #8B6914;
    box-shadow: none;
}

.akce-day-cell.selected.today {
    box-shadow: none;
}

/* ---- Events Section ---- */

.akce-events-section {
    margin-top: 0;
}

.akce-section-heading {
    font-family: 'Afacad', 'Roboto Slab', serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #D09D46;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #D09D46;
}

.akce-section-heading.akce-section-past {
    color: #7A7A7A;
    border-bottom-color: #e0e0e0;
}

.akce-section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.akce-event-card.akce-event-past {
    opacity: 0.6;
}

.akce-show-all {
    background: none;
    border: 1px solid #D09D46;
    color: #D09D46;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s ease;
}

.akce-show-all:hover {
    background: #D09D46;
    color: #fff;
}

.akce-no-events {
    text-align: center;
    color: #7A7A7A;
    padding: 40px 20px;
    font-style: italic;
}

.akce-loading {
    text-align: center;
    color: #D09D46;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* ---- Event Cards ---- */

.akce-event-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #D09D46;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.akce-event-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.akce-event-image {
    flex-shrink: 0;
    width: 180px;
}

.akce-event-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

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

.akce-event-title {
    margin: 0 0 6px 0;
    font-size: 1.15em;
    line-height: 1.3;
}

.akce-event-title a {
    color: #D09D46;
    text-decoration: none;
    font-family: 'Afacad', 'Roboto Slab', serif;
    font-weight: 700;
}

.akce-event-title a:hover {
    color: #c08d3a;
    text-decoration: underline;
}

.akce-event-date {
    color: #68AB6A;
    font-weight: 600;
    font-size: 0.9em;
    margin: 0 0 6px 0;
}

.akce-event-organizer {
    color: #555;
    font-size: 0.85em;
    margin: 0 0 3px 0;
    font-style: italic;
}

.akce-event-organizer a {
    color: #D09D46;
    text-decoration: none;
}

.akce-event-organizer a:hover {
    text-decoration: underline;
}

.akce-event-venue {
    color: #7A7A7A;
    font-size: 0.85em;
    margin: 0 0 6px 0;
}

.akce-event-link {
    display: inline-block;
    background: #61CE70;
    color: #fff;
    padding: 7px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s ease;
}

.akce-event-link:hover {
    background: #4fb85d;
    color: #fff;
    text-decoration: none;
}

/* ---- Single Event Detail Page ---- */

/* Hide theme's and Elementor's default title and featured image on single akce pages */
.single-akce .entry-header,
.single-akce .post-thumbnail,
.single-akce header.page-header,
.single-akce .elementor-page-title,
.single-akce article > .entry-title,
.single-akce .entry-title,
.single-akce .page-title,
.single-akce .wp-block-post-title,
.single-akce h1.entry-title,
.single-akce .site-main > article > header,
.single-akce .elementor-widget-theme-post-featured-image,
.single-akce .elementor-widget-post-info,
.single-akce .elementor-widget-theme-post-title {
    display: none !important;
}

.akce-detail {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.akce-detail-title {
    color: #D09D46;
    font-size: 2.2em !important;
    margin: 0 0 30px 0;
    padding: 0 0 16px 0;
    border-bottom: 2px solid #D09D46;
}

/* 2-column grid: left = image + map, right = info */
.akce-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.akce-detail-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.akce-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.akce-detail-image {
    border-radius: 6px;
    overflow: hidden;
}

.akce-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.akce-detail-map {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.akce-detail-meta {
    background: #FAFAFA;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #D09D46;
    border-radius: 6px;
    padding: 20px;
}

.akce-detail-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.akce-detail-row:last-child {
    border-bottom: none;
}

.akce-detail-label {
    font-weight: 700;
    color: #D09D46;
    min-width: 120px;
    flex-shrink: 0;
}

.akce-detail-value {
    color: #333;
}

.akce-detail-value a {
    color: #D09D46;
    text-decoration: none;
}

.akce-detail-value a:hover {
    text-decoration: underline;
}

.akce-detail-description {
    line-height: 1.7;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    #akce-kalendar-wrapper {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .akce-calendar-grid {
        font-size: 0.85em;
    }

    .akce-day-cell {
        padding: 8px 2px;
        min-height: 34px;
    }

    .akce-event-card {
        flex-direction: column;
    }

    .akce-event-image {
        width: 100%;
    }

    .akce-event-image img {
        height: 180px;
    }

    .akce-detail-grid {
        grid-template-columns: 1fr;
    }

    .akce-detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .akce-detail-label {
        min-width: auto;
    }

    .akce-detail-map {
        height: 250px;
    }

    .akce-month-label {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .akce-day-header {
        font-size: 0.75em;
    }

    .akce-day-cell {
        font-size: 0.8em;
        padding: 6px 1px;
    }

    .akce-nav-prev,
    .akce-nav-next {
        padding: 4px 10px;
        font-size: 1.1em;
    }
}
