/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.kud-nastupi-grid {
    background: #F4EFE6;
    border: 1px solid #E8E0D1;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
	
}

.kud-nastup-card:hover {
    transform: translateY(-6px);
    border-color: #C8A24A;
}
/* ================================
   KUD NADOLAZEĆI NASTUPI - OSNOVNO
================================ */

.kud-nastupi-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #E8E0D1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.kud-nastup-card {
    background: #fff;
    border-bottom: 1px solid #E8E0D1;
    transition: all 0.3s ease;
}

.kud-nastup-card:last-child {
    border-bottom: none;
}

.kud-nastup-card:hover {
    background: #FFF8E1;
    transform: translateY(-3px);
}

.kud-nastup-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px;
    text-decoration: none;
    color: inherit;
}

.kud-date-box {
    min-width: 95px;
    height: 95px;
    background: #C8A24A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
}

.kud-full-date {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.kud-content {
    flex: 1;
}

.kud-content h3 {
    margin: 0 0 10px;
    color: #0F2E23;
    font-size: 20px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.kud-nastup-card:hover .kud-content h3 {
    color: #8C6A2F;
}

.kud-time {
    color: #8C6A2F;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.kud-location {
    color: #6B7280;
    font-size: 14px;
}


/* ================================
   FULL SEKCIJA - 3 KOLONE
   Shortcode: [nadolazeci_nastupi tip="full"]
================================ */

.kud-nastupi-grid.kud-nastupi-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.kud-nastupi-full .kud-nastup-card {
    background: #fff;
    border: 1px solid #E8E0D1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.kud-nastupi-full .kud-nastup-card:hover {
    transform: translateY(-6px);
    border-color: #C8A24A;
    background: #FFF8E1;
}

.kud-nastupi-full .kud-nastup-card:last-child {
    border-bottom: 1px solid #E8E0D1;
}

.kud-nastupi-full .kud-nastup-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px;
    height: 100%;
}

.kud-nastupi-full .kud-date-box {
    min-width: 95px;
    width: 95px;
    height: 95px;
}

.kud-nastupi-full .kud-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.kud-nastupi-full .kud-time {
    margin-bottom: 8px;
}


/* Tablet i mobilni - jedno ispod drugog */

@media (max-width: 1024px) {

    .kud-nastupi-grid.kud-nastupi-full {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kud-nastupi-full .kud-nastup-inner {
        flex-direction: row;
        align-items: center;
        padding: 22px;
        gap: 18px;
    }

}

@media (max-width: 480px) {

    .kud-nastupi-full .kud-nastup-inner {
        align-items: flex-start;
        padding: 16px;
        gap: 14px;
    }

    .kud-nastupi-full .kud-date-box {
        min-width: 68px;
        width: 68px;
        height: 68px;
        border-radius: 10px;
    }

    .kud-nastupi-full .kud-full-date {
        font-size: 13px;
    }

    .kud-nastupi-full .kud-content h3 {
        font-size: 16px;
    }

}


/* ================================
   SIDEBAR VERZIJA
   Shortcode: [nadolazeci_nastupi tip="sidebar"]
================================ */

.kud-nastupi-grid.kud-nastupi-sidebar {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #E8E0D1;
}

.kud-nastupi-sidebar .kud-nastup-card:hover {
    transform: none;
    background: #FFF8E1;
}

.kud-nastupi-sidebar .kud-nastup-inner {
    padding: 16px;
    gap: 14px;
}

.kud-nastupi-sidebar .kud-date-box {
    min-width: 68px;
    height: 68px;
    border-radius: 10px;
    padding: 8px;
}

.kud-nastupi-sidebar .kud-full-date {
    font-size: 13px;
    line-height: 1.3;
}

.kud-nastupi-sidebar .kud-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.kud-nastupi-sidebar .kud-time,
.kud-nastupi-sidebar .kud-location {
    font-size: 13px;
    line-height: 1.4;
}

.kud-nastupi-sidebar .kud-time {
    margin-bottom: 5px;
}


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

@media (max-width: 768px) {

    .kud-nastup-inner {
        padding: 18px;
        gap: 16px;
    }

    .kud-date-box {
        min-width: 76px;
        height: 76px;
    }

    .kud-full-date {
        font-size: 14px;
    }

    .kud-content h3 {
        font-size: 17px;
    }

    .kud-time,
    .kud-location {
        font-size: 13px;
    }

}

@media (max-width: 480px) {

    .kud-nastup-inner {
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }

    .kud-date-box {
        min-width: 64px;
        height: 64px;
        border-radius: 9px;
    }

    .kud-full-date {
        font-size: 12px;
    }

    .kud-content h3 {
        font-size: 15px;
        margin-bottom: 7px;
    }

}

/* ================================
   SINGLE NASTUP - ACF DETALJI
================================ */

.kud-single-nastup {
    max-width: 1100px;
    margin: 0 auto;
}

.kud-single-cover {
    margin-bottom: 32px;
    border-radius: 18px;
    overflow: hidden;
}

.kud-single-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.kud-single-info-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.kud-single-info-item {
    background: #fff;
    border: 1px solid #E8E0D1;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.kud-info-label {
    display: block;
    color: #8C6A2F;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.kud-info-value {
    display: block;
    color: #0F2E23;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.kud-single-section {
    margin-top: 36px;
    background: #fff;
    border: 1px solid #E8E0D1;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.kud-single-section h2 {
    margin: 0 0 18px;
    color: #0F2E23;
    font-size: 26px;
    line-height: 1.25;
}

.kud-single-excerpt p {
    margin: 0;
    color: #4B5563;
    font-size: 17px;
    line-height: 1.7;
}

.kud-program-content {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.75;
}

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

.kud-single-action {
    margin-top: 32px;
}

.kud-single-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C8A24A;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kud-single-action a:hover {
    background: #8C6A2F;
    color: #fff;
    transform: translateY(-2px);
}

.kud-single-map iframe {
    border-radius: 12px;
    overflow: hidden;
}

.kud-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.kud-gallery-grid a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.kud-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.kud-gallery-grid a:hover img {
    transform: scale(1.05);
}


/* Tablet */

@media (max-width: 1024px) {

    .kud-single-info-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .kud-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile */

@media (max-width: 768px) {

    .kud-single-info-box {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .kud-single-section {
        padding: 22px;
        margin-top: 28px;
    }

    .kud-single-section h2 {
        font-size: 22px;
    }

    .kud-info-value {
        font-size: 16px;
    }

    .kud-gallery-grid {
        grid-template-columns: 1fr;
    }

}

/* ================================
   SINGLE NASTUP - KALENDAR DUGMAD
================================ */

.kud-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.kud-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kud-action-primary {
    background: #C8A24A;
    color: #fff;
}

.kud-action-primary:hover {
    background: #8C6A2F;
    color: #fff;
    transform: translateY(-2px);
}

.kud-action-calendar {
    background: #0F2E23;
    color: #fff;
}

.kud-action-calendar:hover {
    background: #163F31;
    color: #fff;
    transform: translateY(-2px);
}

.kud-action-ics {
    background: #fff;
    color: #0F2E23;
    border: 1px solid #E8E0D1;
}

.kud-action-ics:hover {
    background: #FFF8E1;
    color: #8C6A2F;
    border-color: #C8A24A;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .kud-single-actions {
        flex-direction: column;
    }

    .kud-action-btn {
        width: 100%;
    }

}

/* ================================
   PAGE LISTA - SVI NADOLAZEĆI NASTUPI
================================ */

.kud-upcoming-page-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.kud-upcoming-card {
    background: #fff;
    border: 1px solid #E8E0D1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.kud-upcoming-card:hover {
    transform: translateY(-6px);
    border-color: #C8A24A;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.kud-upcoming-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.kud-upcoming-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #F5F0E6;
    overflow: hidden;
}

.kud-upcoming-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kud-upcoming-card:hover .kud-upcoming-image img {
    transform: scale(1.05);
}

.kud-upcoming-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.kud-upcoming-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.kud-upcoming-date {
    display: inline-flex;
    align-items: center;
    background: #C8A24A;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.kud-upcoming-type {
    display: inline-flex;
    align-items: center;
    background: #FFF8E1;
    color: #8C6A2F;
    border: 1px solid #E8E0D1;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.kud-upcoming-title {
    margin: 0 0 14px;
    color: #0F2E23;
    font-size: 22px;
    line-height: 1.25;
}

.kud-upcoming-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.kud-upcoming-detail {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.45;
}

.kud-upcoming-excerpt {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.kud-upcoming-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    background: #0F2E23;
    color: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.kud-upcoming-card:hover .kud-upcoming-more {
    background: #C8A24A;
    color: #fff;
}

.kud-upcoming-empty {
    background: #fff;
    border: 1px solid #E8E0D1;
    border-radius: 14px;
    padding: 24px;
    color: #6B7280;
    font-size: 16px;
    text-align: center;
}


/* Tablet */

@media (max-width: 1024px) {

    .kud-upcoming-page-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

}


/* Mobile */

@media (max-width: 768px) {

    .kud-upcoming-page-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kud-upcoming-content {
        padding: 18px;
    }

    .kud-upcoming-title {
        font-size: 19px;
    }

}


/* Small mobile */

@media (max-width: 480px) {

    .kud-upcoming-meta-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .kud-upcoming-date,
    .kud-upcoming-type {
        font-size: 12px;
    }

    .kud-upcoming-title {
        font-size: 18px;
    }

}