@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --wh-accent-gold: #c9b458;
    --wh-accent-green: #6aaa64;
    --wh-glass-bg: rgba(255, 255, 255, 0.03);
    --wh-glass-border: rgba(255, 255, 255, 0.1);
}

/* --- PREMIUM TIMELINE STRIP --- */
.wh-history-section {
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--wh-border);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wh-history-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.wh-history-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--wh-accent-gold));
    margin-bottom: 15px;
}

.wh-history-section .wh-section-title {
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase !important;
    color: var(--wh-text-muted) !important;
    opacity: 0.7;
}

.wh-timeline-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wh-timeline-card {
    background: var(--wh-inner-card) !important;
    border: 1px solid var(--wh-border) !important;
    border-radius: 20px !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
    border-left: 5px solid var(--wh-border) !important;
}

.wh-timeline-card:hover {
    transform: scale(1.01) translateY(-2px) !important;
    border-color: var(--wh-accent-gold) !important;
    border-left-color: var(--wh-accent-gold) !important;
    box-shadow: 0 15px 40px rgba(201, 180, 88, 0.12) !important;
    background: var(--wh-bg) !important;
}

/* Custom Calendar Block */
.wh-calendar-icon {
    width: 48px;
    height: 52px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--wh-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.wh-cal-month {
    background: #e74c3c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    text-align: center;
    padding: 2px 0;
    text-transform: uppercase;
}

.wh-cal-day {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
    padding-top: 2px;
}

body.dark-mode .wh-calendar-icon { background: #2a2a2e; }
body.dark-mode .wh-cal-day { color: #fff; }

.wh-timeline-content {
    flex-grow: 1;
    margin-left: 20px;
    text-align: left;
}

.wh-time-badge {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--wh-accent-gold);
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.wh-time-title {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: var(--wh-text) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.wh-time-sub {
    font-size: 0.85rem;
    color: var(--wh-text-muted);
    opacity: 0.8;
}

.wh-time-action {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wh-text-muted);
}

.wh-time-action span {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.wh-action-circle {
    width: 36px;
    height: 36px;
    border: 2px solid var(--wh-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.wh-timeline-card:hover .wh-action-circle {
    background: var(--wh-accent-gold);
    border-color: var(--wh-accent-gold);
    color: #fff;
    transform: rotate(-45deg);
}

@media (max-width: 600px) {
    .wh-time-action span { display: none; }
    .wh-timeline-card { padding: 0.8rem 1rem !important; }
}

:root {
    /* Fixed Wordle Colors */
    --wordle-green: #6aaa64;
    --wordle-yellow: #c9b458;
    --wordle-yellow-dark: #b89f3f; /* Slightly darker for hover */
    --wordle-gray: #787c7e;

    /* Theme Variables - Day Mode (Default) */
    --wh-bg: #ffffff;
    --wh-text: #111111;
    --wh-text-muted: #666666;
    --wh-card: #f5f5f5;
    --wh-inner-card: #ffffff;
    --wh-border: #e0e0e0;
    --wh-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

body.dark-mode {
    /* Theme Variables - Night Mode */
    --wh-bg: #121213;
    --wh-text: #ffffff;
    --wh-text-muted: #818384;
    --wh-card: #1a1a1b;
    --wh-inner-card: #121213;
    --wh-border: #3a3a3c;
    --wh-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Global Reset for the container to prevent external red colors */
.wordle-hint-container, 
.wordle-hint-container *,
.wordle-hint-container a,
.wordle-hint-container button {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.3s ease;
    text-decoration: none !important;
}

/* Force prevent ANY red hover color within the container */
.wordle-hint-container *:hover {
    color: inherit; /* Prevent theme-level red links */
}

.wordle-hint-container {
    font-family: 'Inter', 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--wh-bg);
    color: var(--wh-text);
    max-width: 650px;
    width: 95%;
    margin: 0.5rem auto;
    padding: 0.2rem 1.5rem 1.2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--wh-shadow);
    text-align: center;
    position: relative;
    border: 1px solid var(--wh-border);
    box-sizing: border-box;
    overflow-x: hidden;
}

.wh-header {
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--wh-border);
    padding-bottom: 0.4rem;
    position: relative;
    padding-top: 10px;
}

.wh-main-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wh-text) !important;
}

.wh-meta {
    color: var(--wh-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.3rem;
}

.wh-highlight {
    color: var(--wordle-yellow);
    font-weight: 800;
}

/* Strategy Insight Card */
.wh-strategy-card {
    background: linear-gradient(135deg, rgba(201, 180, 88, 0.1), rgba(106, 170, 100, 0.05));
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    animation: slide-in-top 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.wh-strategy-icon {
    font-size: 1.5rem;
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wh-strategy-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--wordle-yellow-dark);
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.wh-strategy-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--wh-text);
}

.wh-strategy-text strong {
    color: var(--wordle-green);
    font-weight: 800;
}

body.dark-mode .wh-strategy-icon {
    background: var(--wh-card);
}

@keyframes slide-in-top {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Historical Trivia (On This Day) */
.wh-history-section {
    padding: 1.2rem 0;
    border-top: 1px solid var(--wh-border);
    margin-bottom: 0.5rem;
}

/* Monthly Roundup Styles */
.wh-roundup-container {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--wh-card);
    border: 1px solid var(--wh-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--wh-shadow);
}

.wh-roundup-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wh-roundup-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--wh-text) !important;
    margin-bottom: 1.5rem !important;
}

.wh-roundup-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.wh-roundup-stat-box {
    background: var(--wh-inner-card);
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.wh-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wh-text-muted);
    letter-spacing: 0.1em;
}

.wh-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wordle-yellow-dark);
}

.wh-roundup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wh-roundup-row {
    display: grid;
    grid-template-columns: 80px 100px 1fr 120px 140px;
    align-items: center;
    background: var(--wh-inner-card);
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.wh-roundup-row:hover {
    transform: translateX(5px);
    border-color: var(--wordle-yellow);
}

.wh-roundup-date {
    font-weight: 700;
    color: var(--wh-text-muted);
}

.wh-roundup-puzzle {
    font-size: 0.85rem;
    color: var(--wh-text-muted);
}

.wh-roundup-word {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--wh-text);
}

.wh-roundup-diff {
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    text-align: center !important;
    width: fit-content !important;
    margin: 0 auto !important;
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wh-diff-very-easy, .wh-diff-easy { background: rgba(87, 170, 101, 0.1); color: #57aa65; }
.wh-diff-moderate { background: rgba(201, 180, 88, 0.1); color: #c9b458; }
.wh-diff-hard { background: rgba(232, 141, 125, 0.1); color: #e88d7d; }
.wh-diff-insane { background: rgba(217, 78, 36, 0.1); color: #d94e24; }

.wh-roundup-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wh-text-muted);
    text-decoration: none;
    text-align: right;
}

.wh-roundup-row:hover .wh-roundup-link {
    color: var(--wordle-yellow-dark);
}

@media (max-width: 768px) {
    .wh-roundup-stats { flex-wrap: wrap; gap: 15px; }
    .wh-roundup-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .wh-roundup-word { grid-column: span 2; }
    .wh-roundup-link { text-align: left; }
}

/* Date Navigation */

/* Date Navigation */

@media (max-width: 480px) {
    .wh-history-grid {
        grid-template-columns: 1fr;
    }
}

/* Date Navigation */
.wh-date-nav {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--wh-card);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid var(--wh-border);
}

.wordle-hint-container .wh-nav-btn {
    background: var(--wh-inner-card);
    color: var(--wh-text);
    border: 1px solid var(--wh-border);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.wordle-hint-container .wh-nav-btn:hover {
    background: var(--wordle-yellow);
    color: #000;
    border-color: var(--wordle-yellow);
    transform: scale(1.1);
}

body.dark-mode .wordle-hint-container .wh-nav-btn:hover {
    color: #000;
}

.wh-date {
    min-width: 140px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 10px;
    border-radius: 8px;
}

.wh-date:hover {
    background-color: var(--wh-inner-card);
    color: var(--wordle-yellow) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.dark-mode .wh-date:hover {
    background-color: var(--wh-bg);
}

/* Theme Toggle Pill Switch */
.wh-theme-toggle {
    width: 50px;
    height: 26px;
    background-color: #121213 !important;
    border-radius: 999px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    z-index: 100;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
    transform: scale(0.9);
}

.wh-toggle-knob {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.wh-toggle-icon {
    font-size: 14px;
    z-index: 1;
    user-select: none;
    color: white !important;
    filter: grayscale(1) brightness(0) invert(1) !important;
    transition: all 0.3s ease;
}

body.dark-mode .wh-theme-toggle {
    background-color: #e5e7eb !important;
}

body.dark-mode .wh-toggle-icon {
    color: #111111 !important;
    filter: grayscale(1) brightness(0) !important;
}

body.dark-mode .wh-toggle-knob {
    transform: translateX(24px);
}

/* Wordle Grid (Reveal UI) */
.wh-game-section {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--wh-border);
}

.wh-answer-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--wh-text-muted);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.wh-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.wh-box {
    width: 70px;
    height: 70px;
    perspective: 1000px;
    cursor: pointer;
}

.wh-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.wh-box.revealed .wh-box-inner {
    transform: rotateX(180deg);
}

.wh-box-front, .wh-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    border: 3px solid var(--wh-border);
    border-radius: 8px;
    text-transform: uppercase;
}

.wh-box-front {
    background-color: var(--wh-bg);
}

.wh-box-back {
    transform: rotateX(180deg);
    border-color: var(--wordle-green);
    background-color: var(--wordle-green);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reveal Animation Class */
.wh-box.revealing {
    animation: reveal-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reveal-bounce {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Reveal Controls & Layout Stability */
.wh-reveal-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-height: 120px;
    position: relative;
    margin-top: 0.5rem;
}

.wordle-hint-container .wh-reveal-main-btn {
    background-color: var(--wordle-green);
    color: white;
    border: none;
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(106, 170, 100, 0.3);
    transition: all 0.3s ease, opacity 0.3s ease;
    z-index: 5;
}

.wordle-hint-container .wh-reveal-main-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(201, 180, 88, 0.3);
    background-color: var(--wordle-yellow-dark);
    color: #000000;
}

.wh-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important; /* Force hide from layout */
}

.wh-reveal-main-btn.wh-hidden {
    display: none !important;
}

/* Smart Post-Reveal Toolbar */
.wh-post-reveal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 30px) !important;
    left: 15px !important;
    background: var(--wh-card);
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    padding: 10px 20px;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    justify-content: space-between !important;
    box-sizing: border-box !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wh-post-reveal-toolbar.wh-visible {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.wh-toolbar-segment {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wh-share-segment {
    display: flex !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.wh-timer-segment {
    flex-shrink: 0 !important;
    text-align: right !important;
    margin-right: 0 !important;
}

.wh-next-countdown {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centered relative to each other */
    text-align: center !important;
    white-space: nowrap !important;
}

.wordle-hint-container .wh-toolbar-btn, 
.wordle-hint-container .wh-share-btn, 
.wordle-hint-container .wh-replay-btn {
    background: #ffffff;
    border: 1.5px solid #e3e3e3;
    color: #1a1a1b;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    white-space: nowrap;
    flex-shrink: 0 !important; /* Prevents squashing */
}

.wordle-hint-container .wh-toolbar-btn:hover, 
.wordle-hint-container .wh-share-btn:hover {
    background: var(--wordle-yellow);
    border-color: var(--wordle-yellow);
    color: #000;
}

/* Force square dimensions for icon-only buttons */
#wh-calendar-toggle {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
}

.wh-share-btn .icon, .wh-toolbar-btn i, .wh-share-btn i {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 1.5 !important;
    display: inline-block;
    vertical-align: middle;
    color: currentColor;
}

.wh-next-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 4px;
}

.next-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--wh-text-muted);
    letter-spacing: 0.05em;
}

.next-time {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--wordle-green);
}

.wh-replay-btn {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 16px !important;
}

/* --- ACCESSIBILITY FOCUS STATES --- */
.wordle-hint-container *:focus-visible {
    outline: 2px solid var(--wordle-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(106, 170, 100, 0.2);
}

/* Specific Focus for Boxes */
.wh-box:focus-visible {
    border-color: var(--wordle-green);
    transform: scale(1.05);
}

/* Toolbar Buttons Focus */
.wh-toolbar-btn:focus-visible,
.wh-share-btn:focus-visible,
.wh-replay-btn:focus-visible {
    background: var(--wh-border) !important;
}

/* Theme Toggle Focus */
.wh-theme-toggle:focus-visible {
    background: var(--wh-border);
    border-radius: 12px;
}

/* Date Navigator Focus */
.wh-date:focus-visible {
    background: var(--wh-card);
    border-radius: 4px;
}

/* Responsive Toolbar */
@media (max-width: 600px) {
    .wh-post-reveal-toolbar {
        flex-direction: column;
        position: static;
        transform: none;
        gap: 12px;
        padding: 15px;
        width: 100% !important;
        left: 0 !important;
    }
    
    .wh-toolbar-segment {
        width: 100%;
        display: flex !important;
        gap: 10px;
    }
    
    .wh-nav-segment {
        order: 1;
    }
    .wh-nav-segment #wh-toolbar-prev {
        flex-grow: 1;
        justify-content: center;
    }
    .wh-nav-segment #wh-toolbar-calendar {
        flex-shrink: 0;
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
    }
    
    .wh-share-segment {
        order: 2;
        display: flex !important;
    }
    .wh-share-segment .wh-share-btn {
        flex-grow: 1;
        justify-content: center;
        width: auto !important;
    }
    .wh-share-segment #wh-copy-results {
        flex-shrink: 0;
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
    }
    
    .wh-timer-segment {
        order: 3;
        width: 100%;
        justify-content: center;
        text-align: center !important;
    }
    
    .wh-next-countdown {
        align-items: center !important;
        margin-right: 0 !important;
    }
}

/* Hints Section */
.wh-hints-section {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
    background-color: var(--wh-card);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--wh-border);
}

.wh-section-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--wh-border);
    padding-bottom: 0.4rem;
    color: var(--wh-text) !important;
}

.wh-hint-card {
    position: relative;
    margin-bottom: 0.6rem;
    padding: 0.7rem 0.9rem;
    background-color: var(--wh-inner-card);
    border-radius: 10px;
    border: 1px solid var(--wh-border);
    cursor: pointer;
}

.wh-hint-card:hover {
    border-color: var(--wordle-yellow-dark) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(201, 180, 88, 0.15) !important;
}

.wh-hint-card.locked .wh-hint-info {
    filter: blur(6px);
    opacity: 0.3;
}

.wh-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Unlock Button UI */
.wh-unlock-btn {
    background-color: var(--wordle-yellow) !important;
    color: #000000 !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    width: 90% !important;
    max-width: 300px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(201, 180, 88, 0.2) !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.wh-unlock-btn:hover {
    transform: scale(1.03) !important;
    background-color: var(--wordle-yellow-dark) !important;
    box-shadow: 0 6px 20px rgba(201, 180, 88, 0.35) !important;
    color: #000000 !important;
}

.wh-hint-card.unlocked .wh-hint-overlay {
    display: none;
}

.wh-hint-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--wordle-yellow);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.wh-hint-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* ðŸ“± Mobile Responsiveness (Optimized) */
@media (max-width: 768px) {
    .wordle-hint-container {
        padding: 0.8rem 1rem 1rem 1rem !important;
        margin: 0.5rem auto !important;
        width: 96% !important;
        border-radius: 12px !important;
    }

    .wh-header {
        margin-bottom: 0.5rem !important;
        padding-top: 25px !important;
    }

    .wh-main-title {
        font-size: 1.4rem !important;
        letter-spacing: 0.05em !important;
    }

    .wh-meta {
        font-size: 0.75rem !important;
        gap: 0.3rem !important;
        margin-top: 0.2rem !important;
    }

    .wh-theme-toggle {
        top: 6px !important;
        right: 8px !important;
        transform: scale(0.85) !important;
    }

    .wh-game-section {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding-top: 0.8rem !important;
    }

    .wh-grid {
        gap: 6px !important;
        margin-bottom: 1rem !important;
    }

    .wh-box {
        width: 48px !important;
        height: 48px !important;
    }

    .wh-box-front, .wh-box-back {
        font-size: 1.5rem !important;
        border-width: 2px !important;
    }

    .wh-reveal-controls {
        min-height: 100px !important;
        gap: 0.8rem !important;
    }

    .wh-reveal-main-btn {
        padding: 0.9rem 2rem !important;
        font-size: 1rem !important;
        width: 100% !important;
    }

    .wh-post-reveal-actions {
        gap: 0.8rem !important;
    }

    .wh-secondary-btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.85rem !important;
    }

    .wh-hints-section {
        padding: 0.75rem !important;
    }

    .wh-section-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .wh-hint-card {
        padding: 0.6rem 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .wh-hint-label {
        font-size: 0.7rem !important;
        margin-bottom: 0.2rem !important;
    }

    .wh-hint-text {
        font-size: 0.9rem !important;
    }

    .wh-unlock-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        width: 90% !important;
        max-width: 280px !important;
    }
}

/* ðŸ“± Small Mobile (Extra Compact) */
@media (max-width: 480px) {
    .wordle-hint-container {
        padding: 0.4rem 0.8rem 0.8rem 0.8rem !important;
        border-radius: 8px !important;
    }
    .wh-header {
        padding-top: 20px !important;
        margin-bottom: 0.4rem !important;
    }
    .wh-main-title {
        font-size: 1.25rem !important;
    }
    .wh-meta {
        font-size: 0.7rem !important;
        gap: 0.25rem !important;
    }
    .wh-theme-toggle {
        top: -4px !important;
        right: -10px !important;
        transform: scale(0.75) !important;
    }
    .wh-game-section {
        margin-top: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    .wh-box {
        width: 42px !important;
        height: 42px !important;
    }
    .wh-box-front, .wh-box-back {
        font-size: 1.3rem !important;
    }
    .wh-unlock-btn {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        width: 90% !important;
        max-width: 260px !important;
    }
    .wh-hint-text {
        font-size: 0.85rem !important;
    }
}

/* ðŸ“š Wordle Archive Styles */
.wordle-archive-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--wh-text);
}

.wh-archive-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wh-archive-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    color: var(--wh-text);
}

.wh-archive-subtitle {
    color: var(--wh-text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.wh-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.wh-archive-card {
    background-color: var(--wh-card);
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.wh-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--wordle-yellow);
}

.wh-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.wh-card-num {
    font-weight: 800;
    color: var(--wordle-green);
    font-size: 1.1rem;
}

.wh-card-date {
    font-size: 0.8rem;
    color: var(--wh-text-muted);
    font-weight: 600;
}

.wh-card-body {
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.wh-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.wh-stat {
    color: var(--wh-text-muted);
}

.wh-stat strong {
    color: var(--wh-text);
}

.wh-card-footer {
    border-top: 1px solid var(--wh-border);
    padding-top: 1rem;
}

.wh-archive-link {
    display: block;
    background-color: var(--wh-bg);
    color: var(--wh-text) !important;
    border: 1px solid var(--wh-border);
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.wh-archive-link:hover {
    background-color: var(--wordle-yellow) !important;
    color: #000 !important;
    border-color: var(--wordle-yellow) !important;
}

/* Pagination */
.wh-archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.wh-pag-btn {
    background-color: var(--wh-card);
    border: 1px solid var(--wh-border);
    color: var(--wh-text) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.wh-pag-btn:hover {
    background-color: var(--wordle-green);
    color: white !important;
    border-color: var(--wordle-green);
}

.wh-pag-info {
    color: var(--wh-text-muted);
    font-weight: 600;
}

@media (max-width: 600px) {
    .wh-archive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .wh-archive-card {
        padding: 0.8rem;
    }
    .wh-archive-title {
        font-size: 1.5rem;
    }
}

/* Prevent layout jump on orientation change */
@media (max-height: 600px) {
    .wordle-hint-container {
        margin: 0.5rem auto;
    }
    .wh-header { margin-bottom: 0.5rem; }
}
/* ðŸ“… Premium Flatpickr Theming */
.flatpickr-calendar.wh-premium-calendar {
    background: var(--wh-bg);
    border: 1px solid var(--wh-border);
    box-shadow: var(--wh-shadow);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    padding: 10px;
    width: 320px;
    z-index: 999999 !important; /* Ensure it's above everything */
}

.wh-premium-calendar .flatpickr-months .flatpickr-month {
    background: transparent;
    color: var(--wh-text);
}

.wh-premium-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700;
    color: var(--wh-text);
}

.wh-premium-calendar .flatpickr-weekday {
    color: var(--wh-text-muted);
    font-weight: 600;
}

.wh-premium-calendar .flatpickr-day {
    color: var(--wh-text);
    border-radius: 8px;
    margin: 2px;
}

.wh-premium-calendar .flatpickr-day:hover {
    background: var(--wh-card);
}

.wh-premium-calendar .flatpickr-day.selected {
    background: var(--wordle-green) !important;
    border-color: var(--wordle-green) !important;
    color: white;
}

.wh-premium-calendar .flatpickr-day.today {
    border-color: var(--wordle-yellow);
}

.wh-premium-calendar .flatpickr-day.flatpickr-disabled {
    color: var(--wh-border);
    cursor: not-allowed;
}

.wh-premium-calendar .flatpickr-months .flatpickr-prev-month, 
.wh-premium-calendar .flatpickr-months .flatpickr-next-month {
    color: var(--wh-text);
    fill: var(--wh-text);
}

/* Dark Mode Overrides for Flatpickr */
body.dark-mode .wh-premium-calendar {
    background: #1e1e1f;
    border-color: #3a3a3c;
}

body.dark-mode .wh-premium-calendar .flatpickr-day:hover {
    background: #3a3a3c;
}

/* ðŸ“Š Wordle Bot Stats & Difficulty */
.wh-difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wh-card);
    padding: 2px 10px;
    border-radius: 99px;
    border: 1px solid var(--wh-border);
    font-size: 0.75rem;
    font-weight: 700;
}

.wh-difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wordle-gray);
}

.wh-difficulty-badge[data-difficulty="very-easy"] { border-color: #57aa65; }
.wh-difficulty-badge[data-difficulty="very-easy"] .wh-difficulty-dot { background: #57aa65; box-shadow: 0 0 8px rgba(87, 170, 101, 0.5); }

.wh-difficulty-badge[data-difficulty="moderate"] { border-color: #c9b458; }
.wh-difficulty-badge[data-difficulty="moderate"] .wh-difficulty-dot { background: #c9b458; box-shadow: 0 0 8px rgba(201, 180, 88, 0.5); }

.wh-difficulty-badge[data-difficulty="hard"] { border-color: #e88d7d; }
.wh-difficulty-badge[data-difficulty="hard"] .wh-difficulty-dot { background: #e88d7d; box-shadow: 0 0 8px rgba(232, 141, 125, 0.5); }

.wh-difficulty-badge[data-difficulty="insane"] { border-color: #d94e24; }
.wh-difficulty-badge[data-difficulty="insane"] .wh-difficulty-dot { background: #d94e24; box-shadow: 0 0 8px rgba(217, 78, 36, 0.5); }

.wh-stats-summary {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--wh-card);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--wh-border);
    text-align: left;
}

.wh-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wh-border);
}

.wh-stats-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wh-text);
}

.wh-stats-avg {
    font-size: 0.8rem;
    color: var(--wh-text-muted);
}

.wh-dist-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wh-dist-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wh-dist-label {
    width: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--wh-text-muted);
}

.wh-dist-bar-container {
    flex-grow: 1;
    background: var(--wh-inner-card);
    height: 14px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--wh-border);
}

.wh-dist-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--wordle-gray), #939598);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}

.wh-dist-bar-wrapper:nth-child(3) .wh-dist-bar,
.wh-dist-bar-wrapper:nth-child(4) .wh-dist-bar {
    background: linear-gradient(90deg, var(--wordle-green), #85c17e);
}

.wh-dist-pct {
    width: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wh-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.wh-dist-bar-wrapper:hover .wh-dist-bar {
    filter: brightness(1.1);
}

.wh-desktop-only {
    display: inline;
}

@media (max-width: 600px) {
    .wh-desktop-only { display: none; }
    .wh-difficulty-label { font-size: 0.7rem; }
    .wh-stats-summary { padding: 0.75rem; }
}
/* ðŸ§ª Word Discovery Section (Premium Design) */
.wh-discovery-section {
    margin-top: 1.25rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--wh-border);
    text-align: left;
    display: none !important; /* Zero space when hidden */
}

.wh-discovery-section.wh-visible {
    display: block !important;
    animation: wh-reveal-discovery 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes wh-reveal-discovery {
    0% { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wh-discovery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wh-discovery-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wh-text);
}

.wh-discovery-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--wh-card);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--wh-border);
}

.wh-pos {
    color: var(--wordle-green);
    font-style: italic;
}

.wh-pronunciation {
    color: var(--wh-text-muted);
}

.wh-audio-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease !important;
    margin-left: 2px;
}

.wh-audio-btn:hover {
    transform: scale(1.2) !important;
}

.wh-audio-icon {
    font-size: 1.1rem;
}

.wh-discovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wh-span-all {
    grid-column: 1 / -1;
}

.wh-discovery-item {
    background: var(--wh-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--wh-border);
}

.wh-discovery-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--wh-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.wh-discovery-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--wh-text);
}

.wh-discovery-text.small {
    font-size: 0.85rem;
    color: var(--wh-text-muted);
}

.wh-discovery-text.italic {
    font-style: italic;
}

.wh-example-box {
    background: var(--wh-inner-card);
    border-left: 4px solid var(--wordle-yellow);
}

.wh-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.wh-tag {
    background: var(--wh-inner-card);
    color: var(--wh-text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--wh-border);
}

.wh-tag-alt {
    color: var(--wh-text-muted);
    background: transparent;
    border-style: dashed;
}

.wh-first-use {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--wh-text-muted);
    border-top: 1px solid var(--wh-border);
    padding-top: 0.6rem;
}

.wh-first-use strong {
    color: var(--wh-text);
}

/* ðŸ“± Discovery Mobile Tweak */
@media (max-width: 600px) {
    .wh-discovery-grid {
        grid-template-columns: 1fr;
    }
    .wh-discovery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wh-discovery-meta {
        width: fit-content;
    }
}
/* --- Wordle Solver System --- */
.wordle-solver-container {
    max-width: 650px;
    width: 95%;
    margin: 1rem auto;
    padding: 0;
    background: var(--wh-bg);
    border-radius: 16px;
    box-shadow: var(--wh-shadow);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--wh-text);
    overflow: hidden;
    border: 1px solid var(--wh-border);
    box-sizing: border-box;
}

/* Language and Mode Tabs */
.ws-lang-tabs {
    display: flex;
    direction: ltr !important;
    gap: 12px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--wh-border);
    background: rgba(0, 0, 0, 0.015);
    justify-content: center;
    flex-wrap: wrap;
}
body.dark-mode .ws-lang-tabs {
    background: rgba(255, 255, 255, 0.015);
}

.ws-lang-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    position: relative !important;
}
.ws-flag-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}

.ws-lang-tab:hover .ws-flag-img {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.ws-lang-tab.active .ws-flag-img {
    border-color: var(--wh-accent-gold);
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(201, 180, 88, 0.3);
}

/* Custom CSS Tooltips for Flag Selection */
.ws-lang-tab::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(18, 18, 18, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-lang-tab::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent rgba(18, 18, 18, 0.95) transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}

.ws-lang-tab:hover::after,
.ws-lang-tab:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ws-mode-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: var(--wh-card);
    border: 1px solid var(--wh-border);
    border-radius: 99px;
    width: fit-content;
    margin: 15px auto 5px;
}
.ws-mode-tabs .ws-mode-tab {
    background: transparent !important;
    border: none !important;
    color: var(--wh-text-muted) !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border-radius: 99px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}
.ws-mode-tabs .ws-mode-tab:first-child {
    border-radius: 99px !important;
    border: none !important;
}
.ws-mode-tabs .ws-mode-tab:last-child {
    border-radius: 99px !important;
    border: none !important;
}
.ws-mode-tabs .ws-mode-tab:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--wh-text) !important;
}
body.dark-mode .ws-mode-tabs .ws-mode-tab:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.ws-mode-tabs .ws-mode-tab.active {
    background: var(--wh-accent-green) !important;
    border-color: var(--wh-accent-green) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(106, 170, 100, 0.2) !important;
}

.ws-header {
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--wh-border);
    padding: 10px 25px 0.6rem;
    text-align: center;
}

.ws-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wh-text);
}

.ws-subtitle {
    color: var(--wh-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0.3rem 0 0;
    display: block;
}

.ws-highlight {
    color: var(--wordle-green);
    font-weight: 800;
}

.ws-sections-wrapper {
    padding: 20px 25px;
    background: var(--wh-bg);
}

.ws-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wh-border);
}

.ws-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.ws-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ws-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.ws-badge.green { background: var(--wordle-green); }
.ws-badge.yellow { background: var(--wordle-yellow); }
.ws-badge.gray { background: var(--wordle-gray); }

.ws-clear-section {
    background: none;
    border: none;
    color: var(--wh-text-muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.ws-clear-section:hover { color: var(--wh-text); }

.ws-grid-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.ws-row-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.ws-grid {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin: 0;
}

.ws-box {
    width: 50px;
    height: 50px;
    border: 2px solid var(--wh-border);
    border-radius: 8px;
    background: var(--wh-inner-card);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--wh-text);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-box:focus {
    outline: none;
    border-color: var(--wordle-green);
}

.ws-box.green { border-color: var(--wordle-green); color: var(--wordle-green); }
.ws-box.green:not(:placeholder-shown) { background: var(--wordle-green); color: #fff; }

.ws-box.yellow { border-color: var(--wordle-yellow); color: var(--wordle-yellow); }
.ws-box.yellow:not(:placeholder-shown) { background: var(--wordle-yellow); color: #fff; }

.ws-box.gray { border-color: #787C7E; background: #787C7E; color: #fff; }

.ws-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ws-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wh-text-muted);
}

.ws-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.ws-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.ws-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--wh-border);
  transition: .3s;
  border-radius: 34px;
}

.ws-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .ws-slider {
  background-color: var(--wordle-green);
}

input:checked + .ws-slider:before {
  transform: translateX(18px);
}

.ws-add-row {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid var(--wh-border) !important;
    color: var(--wh-text) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    margin-top: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

body.dark-mode .ws-add-row {
    background: rgba(255, 255, 255, 0.03) !important;
}

.ws-add-row:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
}

.yellow-section .ws-add-row:hover {
    background: var(--wordle-yellow) !important;
    color: #fff !important;
    border-color: var(--wordle-yellow) !important;
    box-shadow: 0 6px 12px rgba(201, 180, 88, 0.2) !important;
}

.gray-section .ws-add-row:hover {
    background: #787C7E !important;
    color: #fff !important;
    border-color: #787C7E !important;
    box-shadow: 0 6px 12px rgba(120, 124, 126, 0.2) !important;
}

.ws-row-delete {
    background: rgba(0, 0, 0, 0.03);
    color: var(--wh-text-muted);
    border: 1px solid var(--wh-border);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.ws-row-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
    transform: scale(1.1);
}

.ws-footer {
    padding: 20px 25px;
    background: var(--wh-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--wh-border);
}

.ws-btn-primary {
    background-color: var(--wordle-green) !important;
    color: white !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 14px rgba(106, 170, 100, 0.2) !important;
}

.ws-btn-primary:hover {
    background-color: var(--wordle-yellow-dark) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.ws-btn-secondary {
    background: var(--wh-card) !important;
    border: 1px solid var(--wh-border) !important;
    color: var(--wh-text) !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
}

.ws-btn-secondary:hover {
    background: var(--wh-border) !important;
}

.ws-results-section {
    padding: 20px 25px;
    background: var(--wh-bg);
    border-top: 1px solid var(--wh-border);
}

.ws-result-count {
    display: block;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--wordle-green);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ws-results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ws-word-item {
    padding: 6px 12px;
    background: var(--wh-card);
    border: 1px solid var(--wh-border);
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--wh-text);
}

    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-box:focus {
    outline: none;
    border-color: var(--wordle-green);
}

.ws-box.green { border-color: var(--wordle-green); color: var(--wordle-green); }
.ws-box.green:not(:placeholder-shown) { background: var(--wordle-green); color: #fff; }

.ws-box.yellow { border-color: var(--wordle-yellow); color: var(--wordle-yellow); }
.ws-box.yellow:not(:placeholder-shown) { background: var(--wordle-yellow); color: #fff; }

.ws-box.gray { border-color: #787C7E; background: #787C7E; color: #fff; }

.ws-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ws-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wh-text-muted);
}

.ws-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.ws-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.ws-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--wh-border);
  transition: .3s;
  border-radius: 34px;
}

.ws-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .ws-slider {
  background-color: var(--wordle-green);
}

input:checked + .ws-slider:before {
  transform: translateX(18px);
}

.ws-add-row {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid var(--wh-border) !important;
    color: var(--wh-text) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    margin-top: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

body.dark-mode .ws-add-row {
    background: rgba(255, 255, 255, 0.03) !important;
}

.ws-add-row:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
}

.yellow-section .ws-add-row:hover {
    background: var(--wordle-yellow) !important;
    color: #fff !important;
    border-color: var(--wordle-yellow) !important;
    box-shadow: 0 6px 12px rgba(201, 180, 88, 0.2) !important;
}

.gray-section .ws-add-row:hover {
    background: #787C7E !important;
    color: #fff !important;
    border-color: #787C7E !important;
    box-shadow: 0 6px 12px rgba(120, 124, 126, 0.2) !important;
}

.ws-row-delete {
    background: rgba(0, 0, 0, 0.03);
    color: var(--wh-text-muted);
    border: 1px solid var(--wh-border);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.ws-row-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
    transform: scale(1.1);
}

.ws-footer {
    padding: 20px 25px;
    background: var(--wh-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--wh-border);
}

.ws-btn-primary {
    background-color: var(--wordle-green) !important;
    color: white !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 14px rgba(106, 170, 100, 0.2) !important;
}

.ws-btn-primary:hover {
    background-color: var(--wordle-yellow-dark) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.ws-btn-secondary {
    background: var(--wh-card) !important;
    border: 1px solid var(--wh-border) !important;
    color: var(--wh-text) !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
}

.ws-btn-secondary:hover {
    background: var(--wh-border) !important;
}

.ws-results-section {
    padding: 20px 25px;
    background: var(--wh-bg);
    border-top: 1px solid var(--wh-border);
}

.ws-result-count {
    display: block;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--wordle-green);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ws-results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ws-word-item {
    padding: 6px 12px;
    background: var(--wh-card);
    border: 1px solid var(--wh-border);
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--wh-text);
}

.ws-loader {
    padding: 20px;
    text-align: center;
}

.ws-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--wh-border);
    border-top: 3px solid var(--wordle-green);
    border-radius: 50%;
    animation: ws-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes ws-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Toast */
.ws-alert {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    min-width: 320px;
    z-index: 100;
    border: 1px solid #eee;
    animation: ws-fade-in 0.3s ease;
}

@keyframes ws-fade-in {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.ws-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-alert-icon {
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.ws-alert-message {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.ws-alert-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    line-height: 1;
}

.ws-alert-close:hover { color: #4b5563; }

/* Dark Mode Sync */
body.dark-mode .ws-word-item {
    background: var(--wh-inner-card);
}

/* Share Actions */
.wh-share-actions {
    margin-top: -10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.wh-action-btn {
    background: var(--wh-card);
    border: 1px solid var(--wh-border);
    color: var(--wh-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wh-action-btn:hover {
    background: var(--wh-border);
    transform: translateY(-2px);
}

.wh-action-btn.success {
    background: var(--wordle-green) !important;
    border-color: var(--wordle-green) !important;
    color: white !important;
}

.wh-btn-icon {
    font-size: 1rem;
}

/* Difficulty Color Labels */
.wh-diff-very-easy, .wh-diff-easy { background: rgba(87, 170, 101, 0.1) !important; color: #57aa65 !important; }
.wh-diff-moderate { background: rgba(201, 180, 88, 0.1) !important; color: #c9b458 !important; }
.wh-diff-hard { background: rgba(232, 141, 125, 0.1) !important; color: #e88d7d !important; }
.wh-diff-insane { background: rgba(217, 78, 36, 0.1) !important; color: #d94e24 !important; }

/* --- SUBSCRIPTION WIDGET --- */
.wh-subscribe-widget {
    background: linear-gradient(135deg, var(--wh-glass-bg), rgba(201, 180, 88, 0.05));
    border: 1px solid var(--wh-glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.wh-subscribe-icon {
    width: 50px;
    height: 50px;
    background: var(--wh-accent-gold);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(201, 180, 88, 0.3);
}

.wh-subscribe-icon svg {
    width: 24px;
    height: 24px;
}

.wh-subscribe-title {
    margin: 0 0 5px 0 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--wh-text) !important;
}

.wh-subscribe-text {
    margin: 0 0 15px 0 !important;
    font-size: 0.9rem !important;
    color: var(--wh-text-muted) !important;
    line-height: 1.4 !important;
}

.wh-subscribe-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.wh-subscribe-form input {
    flex-grow: 1;
    background: var(--wh-inner-card);
    border: 1px solid var(--wh-border);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--wh-text);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.wh-subscribe-form input:focus {
    border-color: var(--wh-accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 180, 88, 0.1);
}

.wh-subscribe-btn {
    background: var(--wh-accent-gold);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wh-subscribe-btn:hover {
    background: var(--wh-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 170, 100, 0.3);
}

.wh-subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wh-subscribe-message {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}

.wh-subscribe-message.success { color: var(--wh-accent-green); }
.wh-subscribe-message.error { color: #ef4444; }

@media (max-width: 500px) {
    .wh-subscribe-widget {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .wh-subscribe-form {
        flex-direction: column;
    }
}

/* --- SPOILER GUARD OVERLAY --- */
.wh-is-future {
    position: relative;
    min-height: 500px;
}

.wh-future-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
}

body.dark-mode .wh-future-overlay {
    background: rgba(18, 18, 18, 0.75);
}

.wh-future-notice {
    max-width: 400px;
    background: var(--wh-inner-card);
    padding: 3rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--wh-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    animation: whFadeInUp 0.8s ease-out;
}

.wh-future-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: whPulse 2.5s infinite ease-in-out;
}

.wh-future-notice h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--wh-text);
}

.wh-future-notice p {
    color: var(--wh-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wh-future-timezone-note {
    font-size: 0.85rem;
    opacity: 0.8;
}

.wh-back-home {
    display: inline-block;
    background: var(--wh-accent-gold);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.wh-back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 180, 88, 0.3);
}

@keyframes whPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes whFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Monthly Archive Index */
.wordle-archive-container .wh-monthly-index {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 25px !important;
    padding: 30px 0 !important;
}

.wordle-archive-container .wh-month-card {
    background: var(--wh-inner-card) !important;
    border: 1px solid var(--wh-border) !important;
    border-radius: 20px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    text-decoration: none !important;
    position: relative !important;
    color: var(--wh-text) !important;
}

.wordle-archive-container .wh-month-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--wordle-yellow) !important;
    box-shadow: 0 20px 40px rgba(201, 180, 88, 0.15) !important;
}

.wordle-archive-container .wh-month-name {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: var(--wh-text) !important;
    margin: 0 !important;
    text-transform: capitalize !important;
}

.wordle-archive-container .wh-month-year {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: var(--wordle-yellow-dark) !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}

.wordle-archive-container .wh-month-action {
    margin-top: 15px !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    color: var(--wh-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 8px 16px !important;
    background: rgba(0,0,0,0.05) !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.wordle-archive-container .wh-month-card:hover .wh-month-action {
    background: var(--wordle-yellow) !important;
    color: #000 !important;
}

.wordle-archive-container .wh-archive-back-nav {
    margin-bottom: 2rem !important;
    text-align: left !important;
}

.wordle-archive-container .wh-back-btn {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--wh-text-muted) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.wordle-archive-container .wh-back-btn:hover {
    color: var(--wordle-yellow-dark) !important;
}

/* Premium Daily Card with Top-Bar Layout */
.wordle-archive-container .wh-archive-card {
    background: var(--wh-inner-card) !important;
    border: 1px solid var(--wh-border) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
}

.wordle-archive-container .wh-archive-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--wordle-yellow) !important;
    box-shadow: 0 20px 40px rgba(201, 180, 88, 0.1) !important;
}

.wordle-archive-container .wh-card-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--wh-border) !important;
}

.wordle-archive-container .wh-card-num {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: var(--wordle-green) !important;
    margin: 0 !important;
}

.wordle-archive-container .wh-card-date {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--wh-text-muted) !important;
}

.wordle-archive-container .wh-card-stats {
    display: flex !important;
    gap: 12px !important;
    font-size: 0.85rem !important;
    color: var(--wh-text) !important;
}

.wordle-archive-container .wh-archive-link {
    background: #fff !important;
    border: 1px solid var(--wh-border) !important;
    color: var(--wh-text) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
}

body.dark-mode .wordle-archive-container .wh-archive-link {
    background: var(--wh-card) !important;
}

.wordle-archive-container .wh-archive-card:hover .wh-archive-link {
    background: var(--wordle-yellow) !important;
    border-color: var(--wordle-yellow) !important;
    color: #000 !important;
}

/* Yearly Archive Styles */


.wordle-archive-container .wh-year-nav {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
    background: rgba(0,0,0,0.03) !important;
    padding: 8px !important;
    border-radius: 50px !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border: 1px solid var(--wh-border) !important;
}

.wordle-archive-container .wh-year-jump {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: var(--wh-text-muted) !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.wordle-archive-container .wh-year-jump:hover {
    background: var(--wh-inner-card) !important;
    color: var(--wordle-yellow-dark) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

.wordle-archive-container .wh-year-title {
    width: 100% !important;
    text-align: center !important;
    border-bottom: 2px solid var(--wh-border) !important;
    line-height: 0.1em !important;
    margin: 60px 0 40px !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: var(--wh-text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    display: block !important;
}

.wordle-archive-container .wh-year-title span {
    background: var(--wh-bg) !important;
    padding: 0 30px !important;
}

.wordle-archive-container .wh-archive-year-section {
    margin-bottom: 80px !important;
}

@media (max-width: 600px) {
    .wordle-archive-container .wh-year-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .wordle-archive-container .wh-monthly-index {
        grid-template-columns: 1fr !important;
    }
}

