/* ===================================
   Easter Eggs Styles
   =================================== */

/* ===================================
   Achievement Toast Notifications
   =================================== */

.achievement-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(255, 61, 61, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(255, 61, 61, 0.2), 0 0 0 1px rgba(255, 61, 61, 0.1);
    transform: translateX(150%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    backdrop-filter: blur(20px);
}

.achievement-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.achievement-toast-icon {
    font-size: 40px;
    line-height: 1;
    animation: achievementBounce 0.6s ease;
}

@keyframes achievementBounce {
    0% { transform: scale(0) rotate(-20deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.achievement-toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-toast-title {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.achievement-toast-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.achievement-toast-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===================================
   After Hours Mode
   =================================== */

body.after-hours {
    --bg-primary: #0a0612;
    --bg-secondary: #120a1f;
    --bg-tertiary: #1a0f2e;
}

body.after-hours .bg-animation {
    background: linear-gradient(180deg, #0a0612 0%, #1a0f2e 50%, #0d0620 100%);
}

body.after-hours .bg-gradient-1,
body.after-hours .bg-gradient-2 {
    opacity: 0.3;
    filter: hue-rotate(60deg) saturate(1.5);
}

/* Starfield */
.after-hours-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.after-hours-stars .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: starTwinkle linear infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Typewriter effect for headings */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typingCursor 0.8s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

@keyframes typingCursor {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

/* Pixel Cat in Footer */
footer {
    position: relative;
}

.pixel-cat {
    position: absolute;
    bottom: 20px;
    right: 40px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

body.after-hours .pixel-cat {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pixel-cat.hidden {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}

.pixel-cat-sprite {
    width: 48px;
    height: 48px;
    background: #ff8c42;
    position: relative;
    image-rendering: pixelated;
    box-shadow:
        /* ears */
        -12px -12px 0 #ff8c42,
        12px -12px 0 #ff8c42,
        /* body */
        0 12px 0 #e67335,
        -8px 12px 0 #e67335,
        8px 12px 0 #e67335,
        /* tail */
        20px 8px 0 #ff8c42,
        24px 4px 0 #ff8c42,
        /* eyes */
        -8px -4px 0 #000,
        8px -4px 0 #000,
        /* nose */
        0 0 0 #ffb5a7;
    animation: pixelCatBreathe 3s ease-in-out infinite;
}

@keyframes pixelCatBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.pixel-cat-bubble {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 61, 61, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
}

.pixel-cat-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 61, 61, 0.3);
}

.pixel-cat.active .pixel-cat-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pixel-cat-text {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .achievement-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .pixel-cat {
        right: 20px;
        bottom: 10px;
    }

    .pixel-cat-sprite {
        width: 36px;
        height: 36px;
    }
}
