/* Wordle Game Styles for TGRT */
.wordle-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.wordle-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffd700;
}

.wordle-description {
    font-size: 14px;
    color: #cfd8dc;
    margin-bottom: 20px;
}

.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}

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

.wordle-tile {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.3s, border-color 0.3s;
}

@media (max-width: 480px) {
    .wordle-tile {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

.wordle-tile.active {
    border-color: #ffd700;
}

.wordle-tile.filled {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
}

.wordle-tile.correct {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #fff;
}

.wordle-tile.present {
    background: #f57f17 !important;
    border-color: #f57f17 !important;
    color: #fff;
}

.wordle-tile.absent {
    background: #37474f !important;
    border-color: #37474f !important;
    color: #b0bec5;
}

.wordle-message {
    min-height: 32px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.wordle-message.success {
    background: rgba(46, 125, 50, 0.3);
    border: 1px solid #2e7d32;
    color: #81c784;
}

.wordle-message.failure {
    background: rgba(198, 40, 40, 0.3);
    border: 1px solid #c62828;
    color: #ef9a9a;
}

.wordle-restart-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c4dff, #651fff);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.4);
    transition: transform 0.2s, filter 0.2s;
}

.wordle-restart-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.wordle-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 12px;
    color: #cfd8dc;
    flex-wrap: wrap;
}

.wordle-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-green { background: #2e7d32; }
.legend-yellow { background: #f57f17; }
.legend-gray { background: #37474f; }
