/* =============================================
   Nokose Promotions — Public Styles
   ============================================= */

/* ── Hero Banner ── */
.nokose-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1d3557;
    min-height: 400px;
}

.nokose-hero-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.nokose-hero-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 40px;
    box-sizing: border-box;
}

.nokose-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.nokose-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.nokose-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    color: var(--nokose-light-font, #fff);
}

.nokose-hero-title-img {
    max-height: 80px;
    width: auto;
    margin-bottom: 16px;
}

.nokose-hero-title {
    font-size: 2.4em;
    font-weight: 800;
    margin: 0 0 12px;
    color: inherit;
    line-height: 1.15;
}

.nokose-hero-callout {
    font-size: 1.2em;
    margin: 0 0 20px;
    opacity: 0.9;
}

.nokose-hero-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.95em;
    margin-bottom: 24px;
    opacity: 0.85;
}

.nokose-hero-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-right: 4px;
}

.nokose-hero-cta {
    display: inline-block;
    background: var(--nokose-main-accent, #e63946);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nokose-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ── Hero Nav ── */
.nokose-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.nokose-hero-nav:hover {
    background: rgba(255,255,255,0.3);
}

.nokose-hero-prev { left: 16px; }
.nokose-hero-next { right: 16px; }

.nokose-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.nokose-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.nokose-hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Badges ── */
.nokose-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.nokose-badge-active {
    background: #2e7d32;
    color: #fff;
    animation: nokose-badge-glow 2s ease-in-out infinite;
}

.nokose-badge-upcoming {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

@keyframes nokose-badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); }
    50% { box-shadow: 0 0 12px 4px rgba(46, 125, 50, 0.3); }
}

/* ── Promotion Card ── */
.nokose-promo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--nokose-dark-bg, #1d3557);
    color: var(--nokose-light-font, #fff);
    min-height: 280px;
    display: flex;
    transition: transform 0.25s, box-shadow 0.25s;
}

.nokose-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.nokose-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.nokose-card-inner {
    position: relative;
    z-index: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.nokose-card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}

.nokose-card-callout {
    font-size: 0.9em;
    margin: 0 0 12px;
    opacity: 0.85;
}

.nokose-card-dates {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 16px;
}

.nokose-card-link {
    display: inline-block;
    background: var(--nokose-main-accent, #e63946);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    text-decoration: none;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.nokose-card-link:hover {
    opacity: 0.85;
}

/* ── Promotion Grid ── */
.nokose-promo-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.nokose-cols-1 { grid-template-columns: 1fr; }
.nokose-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nokose-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nokose-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .nokose-cols-3, .nokose-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .nokose-cols-2, .nokose-cols-3, .nokose-cols-4 { grid-template-columns: 1fr; }
}

/* ── Promotion Details ── */
.nokose-promo-details {
    padding: 32px;
    border-radius: 12px;
    background: var(--nokose-light-bg, #f1faee);
    color: var(--nokose-dark-font, #1d3557);
}

.nokose-details-text {
    font-size: 1.05em;
    line-height: 1.7;
}

.nokose-grand-prize-section {
    margin-top: 32px;
    padding: 24px;
    border-radius: 8px;
    background: var(--nokose-dark-bg, #1d3557);
    color: var(--nokose-light-font, #fff);
}

.nokose-gp-heading {
    font-size: 1.5em;
    margin: 0 0 12px;
    color: #f0b849;
}

.nokose-gp-callout {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 8px;
}

.nokose-gp-date {
    margin-top: 16px;
    opacity: 0.85;
}

/* ── Countdown ── */
.nokose-countdown {
    text-align: center;
    padding: 32px;
    background: var(--nokose-dark-bg, #1d3557);
    color: var(--nokose-light-font, #fff);
    border-radius: 12px;
}

.nokose-countdown-label {
    font-size: 1.2em;
    margin: 0 0 20px;
}

.nokose-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.nokose-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nokose-cd-number {
    font-size: 3em;
    font-weight: 800;
    line-height: 1;
    color: var(--nokose-main-accent, #e63946);
    font-variant-numeric: tabular-nums;
}

.nokose-cd-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 6px;
}

/* ── Calendar Preview ── */
.nokose-calendar-preview {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
}

.nokose-cal-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.nokose-cal-header h3 {
    margin: 0;
    font-size: 1em;
}

.nokose-cal-grid {
    padding: 12px;
}

.nokose-cal-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75em;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.nokose-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.nokose-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85em;
    position: relative;
    padding: 4px;
}

.nokose-cal-today {
    background: #e3f2fd;
    font-weight: 700;
}

.nokose-cal-has-promos {
    cursor: pointer;
}

.nokose-cal-date {
    display: block;
    margin-bottom: 2px;
}

.nokose-cal-dots {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.nokose-cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}

.nokose-cal-more {
    font-size: 0.65em;
    color: #888;
}

.nokose-cal-empty {
    opacity: 0;
}

/* ── General ── */
.nokose-no-promos {
    text-align: center;
    color: #888;
    padding: 40px;
}

.nokose-hero-empty {
    text-align: center;
    padding: 60px;
    color: #888;
    background: #f8f9fa;
    border-radius: 12px;
}
