/* ==========================================================================
   FOCUS BUBBLE - CSS STYLES
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

/* Fullscreen Styles */
body.fullscreen {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
}

body.fullscreen .container {
    max-width: none;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   BACKGROUND BUBBLES
   ========================================================================== */

.background-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0; 
    }
    20%, 80% { 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-100px) rotate(180deg); 
    }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.current-task {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.4;
}

.celebration-text {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.celebration-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* ==========================================================================
   INPUT SCREEN STYLES
   ========================================================================== */

.input-screen {
    display: block;
}

.input-group {
    margin-bottom: 2rem;
}

.task-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.task-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.task-input::placeholder {
    color: #666;
    font-style: italic;
}

/* Time Selection */
.time-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-option {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 80px;
}

.time-option:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.time-option.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.custom-time {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.custom-time input {
    width: 60px;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   TIMER SCREEN STYLES
   ========================================================================== */

.timer-screen {
    display: none;
}

/* Focus Bubble */
.focus-bubble {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bubble-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(255,255,255,0.2);
}

.bubble-inner {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.timer-display {
    font-size: 3.5rem;
    font-weight: 200;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-ring circle {
    fill: none;
    stroke: rgba(255,255,255,0.6);
    stroke-width: 4;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease;
}

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

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================================================
   FULLSCREEN BUTTON
   ========================================================================== */

.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fullscreen-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ==========================================================================
   CELEBRATION SCREEN
   ========================================================================== */

.celebration-screen {
    display: none;
}

.celebration-emoji {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: celebration-bounce 1.5s ease-in-out infinite;
}

@keyframes celebration-bounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-5deg); 
    }
}

/* ==========================================================================
   WARNING NOTIFICATION
   ========================================================================== */

.warning-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1000;
    display: none;
    text-align: center;
    animation: warning-pulse 1s ease-in-out infinite;
}

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

.warning-notification h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.warning-notification p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .focus-bubble {
        width: 250px;
        height: 250px;
    }

    .timer-display {
        font-size: 2.8rem;
    }

    .current-task {
        font-size: 1.4rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .time-selector {
        gap: 0.5rem;
    }

    .time-option {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .focus-bubble {
        width: 200px;
        height: 200px;
    }

    .timer-display {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
}