/**
 * WAW POKÉMON CALENDAR - SIDEBAR & HOMEPAGE WIDGETS
 * Box Rocznicy Dnia (styl Pokémon Dnia) oraz Box Wydarzeń na Dziś (styl Kodów do gier)
 */

/* ==========================================================================
   1. BOKS: ROCZNICA DNIA (STYL POKÉMON DNIA)
   ========================================================================== */

.waw-daily-anniv-wrapper {
    box-sizing: border-box;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    font-family: inherit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, #fffdf7 0%, #fff6e3 100%);
    border: 1px solid #fef3c7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waw-daily-anniv-wrapper:hover {
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.12);
}

.waw-daily-anniv-header {
    text-align: center;
    padding: 11px 12px;
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    color: #854d0e;
    border-bottom: 1px solid rgba(254, 240, 138, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.waw-daily-anniv-header .waw-anniv-header-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.waw-daily-anniv-content {
    box-sizing: border-box;
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.waw-daily-anniv-img-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.waw-daily-anniv-img-link:hover {
    transform: scale(1.05);
}

.waw-daily-anniv-img {
    max-width: 130px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
    border-radius: 8px;
}

.waw-daily-anniv-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

.waw-daily-anniv-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.waw-daily-anniv-title-link {
    text-decoration: none;
    color: inherit;
}

.waw-daily-anniv-title {
    font-size: 21px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 2px;
    word-break: break-word;
    transition: color 0.2s;
}

.waw-daily-anniv-title-link:hover .waw-daily-anniv-title {
    color: #b45309;
}

.waw-daily-anniv-sub {
    font-size: 13.5px;
    color: #b45309;
    font-weight: 700;
}

.waw-daily-anniv-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.waw-daily-anniv-stats {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(253, 230, 138, 0.45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.waw-daily-anniv-stats .waw-anniv-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: none;
    font-size: 13.5px;
    color: #334155;
    gap: 8px;
}

.waw-daily-anniv-stats .waw-anniv-stat-row:last-child {
    border-bottom: none;
}

.waw-daily-anniv-stats span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #64748b;
    font-size: 13px;
}

.waw-daily-anniv-stats strong {
    color: #b45309;
    font-weight: 700;
    flex-shrink: 0;
    text-align: right;
}

.waw-daily-anniv-more {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 9px;
    border-radius: 6px;
    color: #854d0e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(253, 230, 138, 0.8);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin-top: 2px;
}

.waw-daily-anniv-more:hover {
    background: #fff;
    color: #713f12;
    border-color: #f59e0b;
}


/* ==========================================================================
   2. BOKS: WYDARZENIA NA DZIŚ (STYL KODÓW DO GIER)
   ========================================================================== */

.waw-events-sidebar-widget {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    width: 100%;
}

.waw-events-short-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #0284c7;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.waw-events-short-count {
    font-size: 11px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.waw-events-short-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.waw-event-short-item {
    background: #f9f9f9;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ebebeb;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.waw-event-short-item:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
}

.waw-event-short-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.waw-event-short-left-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.waw-event-short-line1 {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.waw-event-short-line2 {
    font-size: 12px;
    color: #64748b;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 4px;
}

.waw-event-short-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    min-width: fit-content;
}

.waw-event-short-pill {
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
}

/* Kolorowanie kategorii zgodnie ze stylem kalendarza */
.waw-event-short-pill.pill-pogo {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.waw-event-short-pill.pill-pocket {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.waw-event-short-pill.pill-pocket_event {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.waw-event-short-pill.pill-masters {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.waw-event-short-pill.pill-tcg,
.waw-event-short-pill.pill-tcgja {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.waw-event-short-pill.pill-game,
.waw-event-short-pill.pill-dlc {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.waw-event-short-pill.pill-post {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.waw-event-short-pill.pill-code {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.waw-event-short-pill.pill-custom {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.waw-event-short-time {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    color: #059669;
}

.waw-event-short-time.is-today {
    color: #16a34a;
    font-weight: 700;
}

.waw-event-short-time.is-ending {
    color: #d97706;
    font-weight: 700;
}

.waw-events-short-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 16px 8px;
}

.waw-events-short-more {
    display: block;
    text-align: center;
    margin-top: 15px;
    background: #eee;
    padding: 8px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.waw-events-short-more:hover {
    background: #ddd;
    color: #000;
}

/* Responsywność dla wąskich kolumn w sidebarze */
@container (max-width: 320px) {
    .waw-event-short-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .waw-event-short-right-col {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .waw-event-short-time {
        text-align: left;
    }
}
