/* --- Layout Utilities --- */
html { scroll-behavior: smooth; }

/* --- Component: Cards --- */
.chill-card {
    background-color: #1e293b;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 0 4px #facc15;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1);
}
.chill-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 0 6px #10b981;
}

/* --- Component: Hero Banner (Responsive) --- */
.hero-banner {
    background-image: url('./pics/mbanner.webp'); 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    width: 100%; aspect-ratio: 1350/1135; min-height: 300px;
    display: flex; align-items: flex-end; justify-content: center;
    position: relative;
}
@media (min-width: 768px) {
    .hero-banner {
        background-image: url('./pics/pcbanner.webp');
        aspect-ratio: 3/1;
    }
}
.hero-banner::before {
    content: ""; position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero-banner > * { position: relative; z-index: 2; }

/* --- Component: Meme Result Area --- */
#meme-result-container {
    height: 300px; background-color: #1e293b; border: 1px solid #334155;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

/* --- Component: Carousel --- */
.carousel-container { overflow: hidden; scroll-behavior: smooth; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; }
.carousel-item { flex-shrink: 0; width: 100%; padding: 1rem; }
@media (min-width: 640px) { .carousel-item { width: 50%; } }
@media (min-width: 1024px) { .carousel-item { width: 33.3333%; } }

/* --- Component: Custom Select --- */
.custom-select-list-item:hover { background-color: #334155; }
.locked-style {
    background-color: #334155; color: #94a3b8; cursor: not-allowed !important; opacity: 0.7;
    display: flex; justify-content: space-between; align-items: center; width: 100%; 
}
.locked-style-text { font-size: 0.8rem; color: #94a3b8; }
.exclusive-lock {
    background-color: #2c2f42; border: 2px solid #facc15; opacity: 0.7;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5); cursor: not-allowed; pointer-events: none; 
}

/* --- Component: Reaction Buttons --- */
.reaction-btn {
    outline: none !important; box-shadow: none !important; border: none; background: none;
    cursor: pointer; padding: 5px; text-align: center; color: #ccc;
    transition: color 0.2s, opacity 0.2s;
}
.reaction-btn:active { transform: scale(0.9); }
.reaction-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --- Component: Updates Feed --- */
.update-item {
    background-color: #1e293b; border-bottom: 1px solid #475569; padding: 0.75rem 1rem; transition: background-color 0.2s;
}
.update-item:last-child { border-bottom: none; }

/* --- Animations --- */
/* Shine Effect */
.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: rgba(255, 255, 255, 0.15); transform: skewX(-20deg);
    transition: left 0.5s ease-in-out; animation: shine 5s infinite;
}
@keyframes shine { 0% { left: -100%; } 50% { left: 150%; } 100% { left: -100%; } }

/* Squish Effect */
.squish:active { transform: scale(0.97) !important; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }

/* Pulse Glow (Top Meme) */
.top-meme-frame { z-index: 10; animation: pulse-glow 3s infinite alternate; }
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(250, 204, 21, 0.5), 0 0 20px rgba(250, 204, 21, 0.3), 0 0 0 4px #facc15; }
    100% { box-shadow: 0 0 25px rgba(250, 204, 21, 0.9), 0 0 40px rgba(250, 204, 21, 0.6), 0 0 0 4px #facc15; }
}

/* Dice Spin */
@keyframes rotate-dice { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.dice-rotating { animation: rotate-dice 0.5s linear infinite; }

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast-message {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out forwards;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast-success {
    border-color: #10b981; /* chill-green */
    color: #10b981;
}

.toast-error {
    border-color: #ef4444; /* red-500 */
    color: #ef4444;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}