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

body {
    background: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e6e3;
}

/* Pomodoro Container */
.pomodoro-container {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    max-width: 480px;
    width: 90%;
    margin: 2rem auto;
}

/* Mode Selector Buttons */
.mode-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.mode-btn {
    background: transparent;
    color: #8B7355;
    border: 1px solid #404040;
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mode-btn.active {
    background: #8B7355;
    color: #1a1a1a;
    border-color: #8B7355;
}

.mode-btn:hover:not(.active) {
    background: #2a2a2a;
    border-color: #606060;
}

/* Coffee Section */
.coffee-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.coffee-cup-container {
    position: relative;
}

.coffee-cup {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Coffee Liquid Animation */
.coffee-liquid {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

/* Steam Animation */
.steam-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    display: flex;
    justify-content: center;
}

.steam {
    position: absolute;
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
    border-radius: 4px;
    opacity: 0;
}

.steam-1 {
    left: 20px;
    animation: steam-rise 3s ease-in-out infinite;
}

.steam-2 {
    left: 36px;
    animation: steam-rise 3s ease-in-out 0.5s infinite;
}

.steam-3 {
    left: 52px;
    animation: steam-rise 3s ease-in-out 1s infinite;
}

@keyframes steam-rise {
    0% {
        transform: translateY(0) scaleX(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scaleX(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-40px) scaleX(0.8);
        opacity: 0;
    }
}

/* Timer Display */
.timer-display {
    font-size: 4.5rem;
    font-weight: 300;
    text-align: center;
    margin: 2rem 0;
    font-variant-numeric: tabular-nums;
    color: #e8e6e3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.control-btn {
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e8e6e3;
}

.control-btn:hover {
    background: #3a3a3a;
    border-color: #606060;
    transform: translateY(-2px);
}

/* Session Information */
.session-info {
    text-align: center;
}

.sessions-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sessions-label {
    font-size: 0.875rem;
    color: #a0a0a0;
}

.sessions-number {
    font-size: 1rem;
    font-weight: 600;
    color: #8B7355;
}

.motivation-text {
    font-size: 0.875rem;
    color: #a0a0a0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pomodoro-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: 85%;
    }
    
    .timer-display {
        font-size: 4rem;
    }
    
    .coffee-cup {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .pomodoro-container {
        padding: 1.5rem 1rem;
    border-radius: 20px;
    }
    
    .timer-display {
        font-size: 3.5rem;
    }
    
    .mode-selector {
        flex-wrap: wrap;
    }
    
    .mode-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

/* Active Timer States */
.timer-active .steam {
    opacity: 1;
}

.timer-active .coffee-liquid {
    animation: liquid-bubble 2s ease-in-out infinite;
}

@keyframes liquid-bubble {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.02);
    }
}
