/* ============================================
   GA NAAR BUITEN - Stylesheet
   ============================================ */

:root {
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --accent: #e94560;
    --accent-glow: #ff6b81;
    --success: #00e676;
    --success-glow: #69f0ae;
    --warning: #ffab00;
    --text: #eee;
    --text-muted: #888;
    --font-display: 'Bangers', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Header */
header {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
    font-style: italic;
}

/* Counter Section */
#counter-section {
    position: relative;
    z-index: 1;
    margin: 30px 0;
}

#shame-level {
    height: 8px;
    border-radius: 4px;
    background: #222;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

#shame-level::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--shame-width, 0%);
    background: linear-gradient(90deg, var(--success), var(--warning), var(--accent));
    border-radius: 4px;
    transition: width 1s ease;
}

#counter-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.1);
    transition: all 0.5s ease;
}

#counter-container.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px) rotate(-1deg); }
    40% { transform: translateX(10px) rotate(1deg); }
    60% { transform: translateX(-10px) rotate(-1deg); }
    80% { transform: translateX(10px) rotate(1deg); }
}

#days-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

#days-count {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
    transition: all 0.3s ease;
}

#days-count.level-ok { color: var(--success); text-shadow: 0 0 30px rgba(0, 230, 118, 0.5); }
#days-count.level-warn { color: var(--warning); text-shadow: 0 0 30px rgba(255, 171, 0, 0.5); }
#days-count.level-bad { color: var(--accent); text-shadow: 0 0 30px rgba(233, 69, 96, 0.5); }
#days-count.level-critical {
    color: #ff0040;
    text-shadow: 0 0 50px rgba(255, 0, 64, 0.8);
    animation: critical-pulse 0.5s ease infinite;
}

@keyframes critical-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#roast-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    min-height: 50px;
    transition: all 0.3s ease;
}

/* Button Section */
#button-section {
    position: relative;
    z-index: 1;
    margin: 30px 0;
    text-align: center;
}

#outside-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 25px 40px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #000;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.3);
}

#outside-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 230, 118, 0.5);
}

#outside-btn:active {
    transform: translateY(0) scale(0.98);
}

#outside-btn .btn-icon {
    font-size: 2rem;
}

#outside-btn .btn-text {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
}

#outside-btn .btn-sub {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Shine animation on button */
#outside-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Notification Section */
#notif-section {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 20px 0;
}

#notif-btn {
    padding: 15px 30px;
    border: 2px solid var(--accent);
    border-radius: 15px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#notif-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}

#notif-btn.enabled {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

#notif-status {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Stats Section */
#stats-section {
    position: relative;
    z-index: 1;
    margin: 40px 0;
}

#stats-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

#stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--accent-glow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   CELEBRATION MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 3px solid var(--success);
    box-shadow: 0 0 60px rgba(0, 230, 118, 0.3);
    animation: modal-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modal-pop {
    0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

#modal-emoji {
    font-size: 5rem;
    animation: emoji-bounce 0.6s ease infinite alternate;
}

@keyframes emoji-bounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-15px) scale(1.2); }
}

.modal-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 15px 0;
    background: linear-gradient(135deg, var(--success), var(--success-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 15px 0;
}

#modal-extra {
    font-size: 3rem;
    margin: 15px 0;
    animation: spin-emoji 1s ease infinite;
}

@keyframes spin-emoji {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.2); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}

.modal-close-btn {
    margin-top: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--success), #00c853);
    color: #000;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.4);
}

/* Confetti */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Screen flash */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999;
    animation: flash 0.3s ease forwards;
    pointer-events: none;
}

@keyframes flash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 400px) {
    header h1 { font-size: 2rem; }
    #days-count { font-size: 6rem; }
    .modal-body { padding: 30px 20px; }
}
