/* css/components.css */
/* Premium Red Button */
.btn-primary {
    background: var(--ariston-red);
    color: var(--text-light);
    border: none;
    padding: 16px 44px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px; /* Kotak tegas bersudut kecil */
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary:hover {
    background: var(--ariston-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 18, 42, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm); /* Sudut kecil tegas */
    padding: 30px;
    color: var(--text-light);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Pulse animation for tapping to start */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   GAME TITLE — Efek Brand Merah Ariston
   Berlaku untuk SEMUA judul game (gambar & teks)
   Gunakan class .game-title-img pada <img> judul
   Gunakan class .game-title-text pada <h1>/<h2> judul teks
   ============================================================ */

/* Judul berupa gambar — filter chain untuk warna merah Ariston (#C8102E) */
.game-title-img {
    /* sepia → warm base, saturate → jenuh, hue-rotate → geser ke merah Ariston */
    filter: sepia(1) saturate(10) hue-rotate(-45deg) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
    animation: gameTitlePulse 2.5s ease-in-out infinite;
}

@keyframes gameTitlePulse {
    0%, 100% {
        filter: sepia(1) saturate(9) hue-rotate(-45deg) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: sepia(1) saturate(12) hue-rotate(-45deg) drop-shadow(0 4px 14px rgba(200, 16, 46, 0.5));
    }
}

/* Judul berupa teks — gradient merah premium Ariston */
.game-title-text {
    background: linear-gradient(135deg, #C8102E 0%, #a60d26 50%, #C8102E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gameTitleShine 4s ease infinite;
    /* Fallback untuk browser yang tidak mendukung gradient text */
    color: var(--ariston-red);
    text-shadow: none;
    position: relative;
    display: inline-block;
}

/* Garis aksen merah di bawah judul teks */
.game-title-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--ariston-red), transparent);
    border-radius: 2px;
    animation: gameTitleLine 4s ease infinite;
}

@keyframes gameTitleShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gameTitleLine {
    0%, 100% { width: 60px; opacity: 0.7; }
    50% { width: 100px; opacity: 1; }
}
