/* Pomodoro Timer Styles */

.pomodoro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.pomodoro-display {
    text-align: center;
}

.pomodoro-mode-indicator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pomodoro-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.pomodoro-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pomodoro-bg-circle {
    fill: none;
    stroke: var(--bs-border-color);
    stroke-width: 8;
}

.pomodoro-progress-circle {
    fill: none;
    stroke: #dc3545;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.pomodoro-time-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pomodoro-time {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pomodoro-session-count {
    font-size: 1rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.pomodoro-status {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    background: var(--bs-body-bg);
    border: 2px solid var(--bs-border-color);
    transition: all 0.3s ease;
}

.pomodoro-status.running {
    color: #dc3545;
    border-color: #dc3545;
    animation: pulse 2s infinite;
}

.pomodoro-status.paused {
    color: #ffc107;
    border-color: #ffc107;
}

/* Mode color variations */
.pomodoro-circle.focus-mode .pomodoro-progress-circle {
    stroke: #dc3545;
}

.pomodoro-circle.break-mode .pomodoro-progress-circle {
    stroke: #198754;
}

.pomodoro-circle.long-break-mode .pomodoro-progress-circle {
    stroke: #0d6efd;
}

/* Statistics */
.pomodoro-stat {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .pomodoro-wrapper {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}

[data-bs-theme="dark"] .pomodoro-status {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .pomodoro-wrapper {
        padding: 1.5rem 1rem;
    }

    .pomodoro-circle {
        width: 250px;
        height: 250px;
    }

    .pomodoro-time {
        font-size: 2.75rem;
    }

    .pomodoro-mode-indicator {
        font-size: 1.25rem;
    }

    .pomodoro-status {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .pomodoro-stat {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .pomodoro-circle {
        width: 220px;
        height: 220px;
    }

    .pomodoro-time {
        font-size: 2.5rem;
    }

    .pomodoro-session-count {
        font-size: 0.875rem;
    }
}

/* Fullscreen mode */
.pomodoro-wrapper.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
    background: var(--bs-body-bg);
    justify-content: center;
    padding: 2rem;
}

.fullscreen-mode .pomodoro-circle {
    width: min(70vh, 70vw);
    height: min(70vh, 70vw);
    max-width: 500px;
    max-height: 500px;
}

.fullscreen-mode .pomodoro-time {
    font-size: clamp(3rem, 10vw, 6rem);
}

.fullscreen-mode .pomodoro-mode-indicator {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.fullscreen-mode .pomodoro-session-count {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.fullscreen-mode .pomodoro-status {
    font-size: clamp(1.25rem, 3vw, 2rem);
    padding: 1rem 2rem;
}

/* Exit fullscreen button */
.exit-fullscreen-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.exit-fullscreen-btn:hover {
    background: var(--bs-danger);
    color: white;
    border-color: var(--bs-danger);
    transform: scale(1.1);
}

.exit-fullscreen-btn:active {
    transform: scale(0.95);
}

/* Dark mode fullscreen */
[data-bs-theme="dark"] .pomodoro-wrapper.fullscreen-mode {
    background: #000;
}

[data-bs-theme="dark"] .exit-fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile fullscreen adjustments */
@media (max-width: 768px) {
    .pomodoro-wrapper.fullscreen-mode {
        padding: 1rem;
    }

    .fullscreen-mode .pomodoro-circle {
        width: min(60vh, 80vw);
        height: min(60vh, 80vw);
    }

    .exit-fullscreen-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.75rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 576px) {
    .fullscreen-mode .pomodoro-circle {
        width: min(55vh, 85vw);
        height: min(55vh, 85vw);
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pomodoro-wrapper.fullscreen-mode {
        padding: 0.5rem;
    }

    .fullscreen-mode .pomodoro-circle {
        width: min(80vh, 50vw);
        height: min(80vh, 50vw);
    }

    .fullscreen-mode .pomodoro-mode-indicator {
        margin-bottom: 1rem;
    }

    .fullscreen-mode .pomodoro-status {
        padding: 0.5rem 1rem;
        margin-top: 1rem;
    }
}
