/* ==========================================================================
   Drakkar Shows v2.2 — Visual Layer
   3 Templates: Classic, Cards, Minimal
   ========================================================================== */

/* ---- Base ---- */
.dks { border: none; box-shadow: none; background: transparent; }
.dks td { border: none; }

/* ---- Base element styles (previously inline) ---- */
.dks-td-date {
    width: 80px;
    vertical-align: top;
    padding: 18px 0 0 16px;
    text-align: left;
}

.dks-day {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.dks-month {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.dks-year {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.dks-td-info {
    vertical-align: middle;
    padding: 0px 18px 12px 6px !important;
    text-align: left;
}

.dks-venue {
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.3;
}

.dks-extra-tag {
    position: relative;
    top: -2px;
    padding: 1px 4px 3px 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    text-shadow: -2px 2px 0 #239d87;
    background: #23b79c;
    border-radius: 999px;
    vertical-align: middle;
}

.dks-time {
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

/* ---- FIX: Actions cell — largura para botão, sem position relative ---- */
.dks-td-actions {
    position: relative;
    width: 160px;
    vertical-align: middle;
    padding: 18px 16px 18px 0;
    text-align: right;
    overflow: hidden;
}

/* ---- FIX: Button — largura fixa uniforme ---- */
.dks-btn {
    display: inline-block;
    width: 130px;
    box-sizing: border-box;
    padding: 11px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    white-space: nowrap;
    text-align: center;
}

/* ---- FIX: Ribbon clipping via row instead of actions cell ---- */
.dks-row {
    position: relative;
    overflow: visible;
}

.dks-ribbon {
    --dks-ribbon-bg-top: #1fd15a;
    --dks-ribbon-bg-bottom: #00b83f;
    --dks-ribbon-fold: rgba(0,0,0,0.22);
    position: absolute;
    top: 16px;
    right: -30px;
    width: 118px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    padding: 0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, var(--dks-ribbon-bg-top) 0%, var(--dks-ribbon-bg-bottom) 100%);
    box-shadow:
        0 2px 0 rgba(255,255,255,0.16) inset,
        0 -2px 0 rgba(0,0,0,0.10) inset,
        -8px 8px 10px rgba(0,0,0,0.22);
}

.dks-ribbon__text {
    position: relative;
    z-index: 3;
    display: block;
    white-space: nowrap;
    transform: translateX(2px);
}

.dks-ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 10px solid var(--dks-ribbon-bg-bottom);
    filter: brightness(0.94);
}

/* ---- CLASSIC ---- */
.dks--classic {
    border-collapse: collapse;
    width: 100%;
}

.dks--classic .dks-row {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.dks--classic .dks-row:last-child {
    border-bottom: none;
}

.dks--classic .dks-row:hover {
    background: #fff;
}

/* célula da data */
.dks--classic .dks-td-date {
    min-width: 80px;
    padding: 14px 6px 6px 14px !important;
    margin-top:10px;
    vertical-align: middle !important;
    text-align: left !important;
}

/* bloco superior vermelho */
.dks--classic .dks-day {
    display: block !important;
    width: 80px;
    margin: 0 !important;
    padding: 12px 0 8px !important;
    background: #b62929 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border-radius: 10px 10px 0 0;
}

/* faixa do mês */
.dks--classic .dks-month {
    display: block !important;
    width: 80px;
    margin: 0 !important;
    padding: 7px 0 6px !important;
    background: #9f1111 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    border-radius: 0 0 10px 10px;
}

/* faixa branca do ano */
.dks--classic .dks-year {
    display: block !important;
    width: 80px;
    margin: 0 !important;
    padding: 7px 0 6px !important;
    background: #fff !important;
    color: #000 !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    border: none;
    border-top: none;
    box-sizing: border-box;
}

/* remove qualquer "respiro" visual entre os três blocos */
.dks--classic .dks-day + .dks-month,
.dks--classic .dks-month + .dks-year {
    margin-top: 0 !important;
}

/* info */
.dks--classic .dks-venue {
    color: #111 !important;
}

.dks--classic .dks-time {
    color: #666 !important;
}

/* botão — largura padronizada */
.dks .dks-btn--on,
.dks .dks-btn--few,
.dks .dks-btn--soldout,
.dks .dks-btn--past,
.dks .dks-btn--soon,
.dks .dks-btn--off {
    min-width: 100px;
    text-align: center;
}

.dks--classic .dks-btn--on {
    background: #0bad12 !important;
    color: #fff !important;
    transition: all 0.2s;
}

.dks--classic .dks-btn--on:hover {
    background: #388e3c !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.dks--classic .dks-btn--few {
    background: #e67e22 !important;
    color: #fff !important;
    transition: all 0.2s;
}

.dks--classic .dks-btn--few:hover {
    background: #d35400 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.dks--classic .dks-btn--off {
    background: #e0e0e0 !important;
    color: #555 !important;
    cursor: default;
    pointer-events: none;
}

/* ribbons */
.dks-ribbon--green  {
    --dks-ribbon-bg-top: #20d65c;
    --dks-ribbon-bg-bottom: #08b342;
    --dks-ribbon-fold: rgba(0, 79, 28, 0.35);
}

.dks-ribbon--orange {
    --dks-ribbon-bg-top: #ffb14b;
    --dks-ribbon-bg-bottom: #ea8725;
    --dks-ribbon-fold: rgba(116, 54, 0, 0.30);
}

.dks-ribbon--red {
    --dks-ribbon-bg-top: #ff5555;
    --dks-ribbon-bg-bottom: #da2d2d;
    --dks-ribbon-fold: rgba(103, 0, 0, 0.30);
}

.dks-ribbon--past {
    --dks-ribbon-bg-top: #9b9b9b;
    --dks-ribbon-bg-bottom: #727272;
    --dks-ribbon-fold: rgba(40, 40, 40, 0.28);
}

.dks-ribbon--yellow {
    --dks-ribbon-bg-top: #ffd84b;
    --dks-ribbon-bg-bottom: #f2b600;
    --dks-ribbon-fold: rgba(120, 80, 0, 0.30);
}

/* ---- CLASSIC: Sold Out (red) & Past (gray) buttons ---- */
.dks--classic .dks-btn--soldout {
    background: #c62828 !important;
    color: #fff !important;
    cursor: default;
    pointer-events: none;
}

.dks--classic .dks-btn--past {
    background: #9e9e9e !important;
    color: #fff !important;
    cursor: default;
    pointer-events: none;
}

.dks--classic .dks-btn--soon {
    background: #f2b600 !important;
    color: #3a2a00 !important;
    cursor: default;
    pointer-events: none;
}

/* ---- CARDS ---- */
.dks--cards { border-spacing: 0 12px; border-collapse: separate; }
.dks--cards .dks-row {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s, transform 0.25s;
}
.dks--cards .dks-row:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.dks--cards .dks-row td:first-child { border-radius: 10px 0 0 10px; }
.dks--cards .dks-row td:last-child  { border-radius: 0 10px 10px 0; }

.dks--cards .dks-td-date {
    background: linear-gradient(135deg, #8b1a1a, #a52a2a);
    border-radius: 8px;
    text-align: center !important;
    padding: 10px 12px !important;
    width: 68px !important;
}
.dks--cards .dks-day   { color: #fff; font-size: 26px !important; }
.dks--cards .dks-month { color: rgba(255,255,255,0.85); font-size: 11px !important; letter-spacing: 1.5px; }
.dks--cards .dks-year  { color: rgba(255,255,255,0.55); font-size: 10px !important; }

.dks--cards .dks-venue { color: #1a1a1a; font-size: 15px !important; }
.dks--cards .dks-time  { color: #888; }

.dks--cards .dks-btn--on  { background: #43a047; color: #fff; border-radius: 6px !important; transition: all 0.2s; }
.dks--cards .dks-btn--on:hover { background: #388e3c; color: #fff; text-decoration: none; }
.dks--cards .dks-btn--few { background: #e67e22; color: #fff; border-radius: 6px !important; transition: all 0.2s; }
.dks--cards .dks-btn--few:hover { background: #d35400; color: #fff; text-decoration: none; }
.dks--cards .dks-btn--off { background: #e8e8e8; color: #777; cursor: default; pointer-events: none; border-radius: 6px !important; }
.dks--cards .dks-btn--soldout { background: #c62828; color: #fff; cursor: default; pointer-events: none; border-radius: 6px !important; }
.dks--cards .dks-btn--past { background: #9e9e9e; color: #fff; cursor: default; pointer-events: none; border-radius: 6px !important; }
.dks--cards .dks-btn--soon { background: #f2b600; color: #3a2a00; cursor: default; pointer-events: none; border-radius: 6px !important; }


/* ---- MINIMAL ---- */
.dks--minimal .dks-row {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.dks--minimal .dks-row:last-child { border-bottom: none; }
.dks--minimal .dks-row:hover { border-left-color: #8b1a1a; background: rgba(255,255,255,0.5); }

.dks--minimal .dks-day   { color: #333; font-weight: 300 !important; font-size: 28px !important; }
.dks--minimal .dks-month { color: #666; font-weight: 500 !important; font-size: 13px !important; letter-spacing: 1px; }
.dks--minimal .dks-year  { color: #999; font-weight: 400 !important; font-size: 12px !important; }
.dks--minimal .dks-venue { color: #333; font-weight: 500 !important; font-size: 15px !important; }
.dks--minimal .dks-time  { color: #999; }

.dks--minimal .dks-btn--on  { background: transparent !important; border: 2px solid #43a047 !important; color: #43a047 !important; transition: all 0.2s; }
.dks--minimal .dks-btn--on:hover { background: #43a047 !important; color: #fff !important; text-decoration: none; }
.dks--minimal .dks-btn--few { background: transparent !important; border: 2px solid #e67e22 !important; color: #e67e22 !important; transition: all 0.2s; }
.dks--minimal .dks-btn--few:hover { background: #e67e22 !important; color: #fff !important; text-decoration: none; }
.dks--minimal .dks-btn--off { background: transparent !important; border: 2px solid #ccc !important; color: #999 !important; cursor: default; pointer-events: none; }
.dks--minimal .dks-btn--soldout { background: transparent !important; border: 2px solid #c62828 !important; color: #c62828 !important; cursor: default; pointer-events: none; }
.dks--minimal .dks-btn--past { background: transparent !important; border: 2px solid #9e9e9e !important; color: #9e9e9e !important; cursor: default; pointer-events: none; }
.dks--minimal .dks-btn--soon { background: transparent !important; border: 2px solid #f2b600 !important; color: #b88900 !important; cursor: default; pointer-events: none; }

.dks--minimal .dks-ribbon { display: none; }


/* ---- Responsive: mobile keeps table layout, just smaller ---- */
@media (max-width: 768px) {

    /* Keep table layout — just scale down sizes */
    .dks-mobile .dks {
        table-layout: fixed !important;
        width: 100% !important;
    }

    /* Row */
    .dks-mobile .dks-row,
    .dks-mobile .dks--classic .dks-row,
    .dks-mobile .dks--cards .dks-row,
    .dks-mobile .dks--minimal .dks-row {
        position: relative !important;
        overflow: hidden !important;
    }

    /* Date column — smaller */
    .dks-mobile .dks-td-date,
    .dks-mobile .dks--classic .dks-td-date,
    .dks-mobile .dks--cards .dks-td-date,
    .dks-mobile .dks--minimal .dks-td-date {
        width: 100px !important;
        /*padding: 12px 4px 12px 8px !important;*/
        vertical-align: middle !important;
        text-align: center !important;
    }

    .dks-mobile .dks-day,
    .dks-mobile .dks--classic .dks-day,
    .dks-mobile .dks--cards .dks-day,
    .dks-mobile .dks--minimal .dks-day {
        font-size: 22px !important;
        /*width: 2em !important;*/
    }

    .dks-mobile .dks-month,
    .dks-mobile .dks--classic .dks-month,
    .dks-mobile .dks--cards .dks-month,
    .dks-mobile .dks--minimal .dks-month {
        font-size: 9px !important;
        /*width: 2em !important;*/
    }

    .dks-mobile .dks-year,
    .dks-mobile .dks--classic .dks-year,
    .dks-mobile .dks--cards .dks-year,
    .dks-mobile .dks--minimal .dks-year {
        font-size: 9px !important;
        /*width: 2em !important;*/
    }

    /* Info column */
    .dks-mobile .dks-td-info,
    .dks-mobile .dks--classic .dks-td-info,
    .dks-mobile .dks--cards .dks-td-info,
    .dks-mobile .dks--minimal .dks-td-info {
        padding: 12px 6px !important;
        vertical-align: middle !important;
        text-align: left !important;
    }

    .dks-mobile .dks-venue,
    .dks-mobile .dks--classic .dks-venue,
    .dks-mobile .dks--cards .dks-venue,
    .dks-mobile .dks--minimal .dks-venue {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .dks-mobile .dks-time,
    .dks-mobile .dks--classic .dks-time,
    .dks-mobile .dks--cards .dks-time,
    .dks-mobile .dks--minimal .dks-time {
        font-size: 11px !important;
    }

    /* ---- FIX: Actions column mobile ---- */
    .dks-mobile .dks-td-actions,
    .dks-mobile .dks--classic .dks-td-actions,
    .dks-mobile .dks--cards .dks-td-actions,
    .dks-mobile .dks--minimal .dks-td-actions {
        position: relative !important;
        width: 120px !important;
        padding: 12px 10px 12px 4px !important;
        vertical-align: middle !important;
        text-align: right !important;
        overflow: hidden !important;
    }

    /* ---- FIX: Button mobile — largura fixa uniforme ---- */
    .dks-mobile .dks-btn,
    .dks-mobile .dks--classic .dks-btn,
    .dks-mobile .dks--cards .dks-btn,
    .dks-mobile .dks--minimal .dks-btn {
        padding: 8px 0 !important;
        font-size: 10px !important;
        letter-spacing: 0.4px !important;
        width: 100px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* Ribbon — smaller to fit mobile */
    .dks-mobile .dks-ribbon,
    .dks-mobile .dks--classic .dks-ribbon,
    .dks-mobile .dks--cards .dks-ribbon {
        width: 96px !important;
        height: 20px !important;
        font-size: 7px !important;
        top: 10px !important;
        right: -24px !important;
    }

    .dks-mobile .dks-ribbon::after,
    .dks-mobile .dks--classic .dks-ribbon::after,
    .dks-mobile .dks--cards .dks-ribbon::after {
        right: -8px !important;
        border-top-width: 10px !important;
        border-bottom-width: 10px !important;
        border-left-width: 8px !important;
    }

    .dks-mobile .dks-ribbon__text,
    .dks-mobile .dks--classic .dks-ribbon__text,
    .dks-mobile .dks--cards .dks-ribbon__text {
        transform: translateX(2px) !important;
    }
}

/* ---- Tablet / small desktop: just reduce fixed widths ---- */
@media (min-width: 769px) and (max-width: 1399px) {
    .dks-td-date {
        width: 70px !important;
        padding: 14px 4px 14px 8px !important;
    }

    .dks--classic .dks-td-date {
        min-width: 80px !important;
    }

    .dks--classic .dks-day {
        font-size: 24px !important;
        width: 70px !important;
    }

    .dks--classic .dks-month {
        width: 70px !important;
    }

    .dks--classic .dks-year {
        width: 70px !important;
    }

    /* ---- FIX: Actions tablet ---- */
    .dks-td-actions {
        width: 140px !important;
        padding: 14px 10px 14px 0 !important;
    }

    .dks-btn {
        padding: 9px 0 !important;
        font-size: 11px !important;
        width: 120px !important;
    }

    .dks-venue {
        font-size: 14px !important;
    }

    .dks-ribbon {
        width: 108px !important;
        height: 22px !important;
        font-size: 8px !important;
        right: -26px !important;
        top: 12px !important;
    }

    .dks-ribbon::after {
        right: -9px !important;
        border-top-width: 11px !important;
        border-bottom-width: 11px !important;
        border-left-width: 9px !important;
    }
}


/* ==========================================================================
   NAVIGATION: Custom Scroll (Desktop) + Swiper (Mobile)
   ========================================================================== */

/* ---- Custom scrollbar (desktop) ---- */
.dks-custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
    scroll-behavior: smooth;
    border-radius: 4px;
}

.dks-custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.dks-custom-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.dks-custom-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
    transition: background 0.2s;
}

.dks-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Fade hint at bottom when scrollable */
.dks-scroll-wrap {
    position: relative;
}

.dks-scroll-wrap::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
    pointer-events: none;
    display: block;
}

/* ---- Swiper pagination dots ---- */
.dks-pagination {
    text-align: center;
    padding: 5px 0 4px;
}

.dks-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.dks-dot--active {
    background: #8b1a1a;
    transform: scale(1.3);
}

/* ---- Sort bar ---- */
.dks-sort-btn {
    outline: none;
}

.dks-sort-btn:hover {
    border-color: #999;
}

/* ---- Responsive layout switching ---- */
@media (max-width: 768px) {
    .dks-desktop { display: none !important; }
    .dks-mobile  { display: block !important; }
    .dks-swipe-hint { display: flex !important; }
}

@media (min-width: 769px) {
    .dks-desktop { display: block !important; }
    .dks-mobile  { display: none !important; }
    .dks-swipe-hint { display: none !important; }
}

/* ---- Mobile footer: powered left, dots right ---- */
.dks-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 4px;
    gap: 8px;
}

.dks-mobile-footer .dks-pagination {
    position: static !important;
    width: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    white-space: nowrap !important;
    flex: 0 0 auto;
}

/* ---- Swiper frame / moldura ---- */
.dks-mobile .dks-swiper {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.dks-mobile .swiper-slide {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.dks-mobile .swiper-slide .dks {
    flex: 1 0 auto;
}

/* ---- Swipe hint pulse ---- */
@keyframes dks-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}