/**
 * Likya Mini Games - Oyun 2: Renk Avcısı Stilleri
 */

.game2-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 520px;
}

/* Üst Skor & Sayaç Paneli */
.g2-hud {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.hud-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hud-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.hud-val {
    font-size: 1.25rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #fff;
    line-height: 1.1;
}

.hud-val.time-low {
    color: var(--neon-red);
    animation: timeBlink 0.6s infinite alternate;
}

@keyframes timeBlink {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.1); opacity: 0.7; }
}

/* Kalan Süre Çubuğu */
.time-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 16px;
}

.time-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    border-radius: var(--radius-full);
    transition: width 0.1s linear, background-color 0.3s ease;
}

/* Hedef Renk Kartı */
.target-display-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
}

.target-info {
    display: flex;
    flex-direction: column;
}

.target-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.target-subtitle {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.target-swatch-box {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.target-swatch-box::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Renk Izgarası */
.color-grid-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.color-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 8px;
    background: rgba(18, 22, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.color-grid.grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.color-grid.grid-4x4 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
}

.color-tile {
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease;
    position: relative;
    overflow: hidden;
}

.color-tile:hover {
    transform: scale(1.04);
}

.color-tile:active {
    transform: scale(0.92);
}

/* Doğru Tıklama Mikro-Animasyonu */
.tile-correct {
    animation: correctPop 0.22s ease-out;
}

@keyframes correctPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px #ffffff; }
    100% { transform: scale(1); }
}

/* Uçan Puan Efekti */
.floating-score {
    position: absolute;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 50;
    text-shadow: 0 0 10px var(--neon-cyan);
    animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(1.3);
    }
}

/* Combo Göstergesi Rozeti */
.combo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--neon-yellow);
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid rgba(255, 183, 3, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.combo-pulse {
    animation: comboPulseAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes comboPulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Başlangıç Örtüsü */
.g2-start-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 22, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 30;
    padding: 20px;
    text-align: center;
}
