/* ===========================
   Love Wordle Styles
   =========================== */

.wordle-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 40px;
}

.wordle-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4rem);
    background: linear-gradient(135deg, var(--pink-200), var(--pink-400), var(--rose-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    margin-bottom: 4px;
}

.wordle-subtitle {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--pink-300);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* Board */
.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.wordle-row {
    display: flex;
    gap: 6px;
}

.wordle-tile {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255,143,171,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pink-100);
    text-transform: uppercase;
    background: rgba(255,255,255,0.04);
    transition: transform 0.15s ease, border-color 0.3s ease, background 0.5s ease;
}

.wordle-tile.filled {
    border-color: var(--pink-400);
    transform: scale(1.05);
    animation: tilePop 0.15s ease;
}

.wordle-tile.correct {
    background: linear-gradient(135deg, #c9184a, #e84578);
    border-color: #e84578;
    color: #fff;
    animation: tileFlip 0.5s ease forwards;
}

.wordle-tile.present {
    background: linear-gradient(135deg, #b76e79, #de6fa1);
    border-color: #de6fa1;
    color: #fff;
    animation: tileFlip 0.5s ease forwards;
}

.wordle-tile.absent {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    animation: tileFlip 0.5s ease forwards;
}

@keyframes tilePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1.05); }
}

@keyframes tileFlip {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* Message */
.wordle-message {
    min-height: 36px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--pink-300);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

.wordle-message.win {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--pink-400);
    animation: pulseHeart 1s ease-in-out infinite;
}

/* Keyboard */
.keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.keyboard-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.key {
    min-width: 36px;
    height: 48px;
    border: 1px solid rgba(255,143,171,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--pink-200);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    padding: 0 10px;
}

.key:hover {
    background: rgba(255,107,138,0.2);
    border-color: var(--pink-400);
    transform: translateY(-2px);
}

.key:active {
    transform: scale(0.95);
}

.key.wide {
    min-width: 60px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.key.correct {
    background: linear-gradient(135deg, #c9184a, #e84578);
    border-color: #e84578;
    color: #fff;
}

.key.present {
    background: linear-gradient(135deg, #b76e79, #de6fa1);
    border-color: #de6fa1;
    color: #fff;
}

.key.absent {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.25);
}

/* New Game Button */
.wordle-new-game {
    padding: 12px 36px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
    color: var(--pink-100);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(232,69,120,0.3);
}

.wordle-new-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,69,120,0.4);
}

/* Responsive */
@media (max-width: 420px) {
    .wordle-tile {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .key {
        min-width: 28px;
        height: 42px;
        font-size: 0.75rem;
        padding: 0 6px;
    }

    .key.wide {
        min-width: 48px;
    }
}
