/* Game specific styles moved from styles.css to reduce file size */

/* Board and herb styles */
.game-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.herb {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    animation: appear 0.3s forwards;
}

@keyframes appear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.herb.selected {
    transform: scale(0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.8);
}

.herb.matching {
    animation: matching 0.5s infinite alternate;
}

@keyframes matching {
    from {
        transform: scale(0.95);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.5);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 215, 0, 0.7);
        border-color: rgba(255, 215, 0, 0.9);
    }
}

.herb.eliminated {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.herb.hint {
    animation: hint-pulse 1s infinite alternate;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.8), 0 0 30px rgba(255, 255, 0, 0.6);
    border-color: rgba(255, 255, 0, 0.8);
}

@keyframes hint-pulse {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1.05);
    }
}

/* Game header with repositioned hint button */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff9d00, #ff6d00);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
    position: relative;
}

.theme-blue .header {
    background: linear-gradient(135deg, #2196f3, #0d47a1);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
}

.theme-purple .header {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.theme-green .header {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.score-container {
    display: flex;
    flex-direction: column;
}

.score, .moves, .timer {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.timer {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Repositioned hint button to avoid overlap */
.hint-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.hint-button:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.hint-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}