/* Pomodoro Timer Styles */

/* Header Gradient */
.header-gradient {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Timer Header */
.timer-header {
    text-align: center;
}

.timer-title {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

.timer-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Timer Display Section */
.timer-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-display-wrapper {
    position: relative;
}

/* Progress Ring */
.progress-ring {
    position: relative;
    display: inline-block;
}

.progress-ring-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.progress-ring-circle-bg {
    stroke: #e5e7eb;
}

.progress-ring-circle {
    stroke: #6b46c1;
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
    stroke-linecap: round;
}

/* Timer Content Inside Ring */
.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 8px;
}

.timer-status {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-timer {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-timer:active {
    transform: translateY(0);
}

.btn-start {
    background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 100%);
    color: white;
}

.btn-start:hover {
    background: linear-gradient(135deg, #5a3aa1 0%, #7c4de6 100%);
}

.btn-pause {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.btn-pause:hover {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
}

.btn-reset {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
}

.btn-skip {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-skip:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-fullscreen {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-fullscreen:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-timer i {
    margin-right: 8px;
}

/* Session Info Cards */
.session-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.session-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.session-icon {
    font-size: 2rem;
    color: #6b46c1;
    margin-bottom: 10px;
}

.session-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.session-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-gradient h1 {
        font-size: 2rem;
    }

    .header-gradient p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-gradient {
        border-radius: 0 0 15px 15px;
    }

    .header-gradient h1 {
        font-size: 1.75rem;
    }

    .header-gradient p {
        font-size: 0.95rem;
    }

    .timer-title {
        font-size: 1.5rem;
    }

    .timer-subtitle {
        font-size: 1rem;
    }

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

    .timer-status {
        font-size: 0.95rem;
    }

    .progress-ring-svg {
        width: 240px;
        height: 240px;
    }

    .btn-timer {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .session-card {
        padding: 15px 25px;
        min-width: 130px;
    }

    .session-icon {
        font-size: 1.6rem;
    }

    .session-value {
        font-size: 1.1rem;
    }

    .session-info {
        gap: 20px;
    }

    /* Content section adjustments */
    #pomodoro-timer h2 {
        font-size: 1.5rem;
    }

    #pomodoro-timer h3 {
        font-size: 1.3rem;
    }

    #pomodoro-timer h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .header-gradient {
        padding: 2rem 1rem !important;
        border-radius: 0;
    }

    .header-gradient h1 {
        font-size: 1.5rem;
    }

    .header-gradient p {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.5rem !important;
    }

    .timer-title {
        font-size: 1.25rem;
    }

    .timer-subtitle {
        font-size: 0.9rem;
    }

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

    .timer-status {
        font-size: 0.85rem;
    }

    .progress-ring-svg {
        width: 200px;
        height: 200px;
    }

    .timer-controls {
        gap: 8px;
        flex-direction: column;
        width: 100%;
    }

    .btn-timer {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
    }

    .btn-timer i {
        margin-right: 6px;
    }

    .session-info {
        gap: 15px;
        flex-direction: column;
    }

    .session-card {
        width: 100%;
        max-width: 250px;
        padding: 15px 20px;
        min-width: auto;
    }

    .session-icon {
        font-size: 1.5rem;
    }

    .session-label {
        font-size: 0.85rem;
    }

    .session-value {
        font-size: 1rem;
    }

    /* Content section for mobile */
    #pomodoro-timer h2 {
        font-size: 1.35rem;
    }

    #pomodoro-timer h3 {
        font-size: 1.2rem;
    }

    #pomodoro-timer h4 {
        font-size: 1.1rem;
    }

    #pomodoro-timer .text-muted {
        font-size: 0.95rem;
    }

    #pomodoro-timer .list-unstyled li {
        padding: 6px 0;
        font-size: 0.9rem;
    }
}

/* Animation for timer completion */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.timer-complete {
    animation: pulse 1s ease-in-out 3;
}

/* Content Section Styling */
#pomodoro-timer h2,
#pomodoro-timer h3,
#pomodoro-timer h4 {
    color: #1f2937;
}

#pomodoro-timer .text-muted {
    line-height: 1.7;
}

#pomodoro-timer .list-unstyled li {
    padding: 8px 0;
}

#pomodoro-timer hr {
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

/* Running State Indicator */
.timer-running .progress-ring-circle {
    filter: drop-shadow(0 0 8px currentColor);
}

.timer-running .timer-display {
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Fullscreen Mode */
#pomodoro-timer.fullscreen-mode {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

#pomodoro-timer.fullscreen-mode .row {
    width: 100%;
    max-width: 600px;
}

#pomodoro-timer.fullscreen-mode .glass-card {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#pomodoro-timer.fullscreen-mode .timer-title,
#pomodoro-timer.fullscreen-mode .timer-display {
    color: #fff;
}

#pomodoro-timer.fullscreen-mode .timer-subtitle,
#pomodoro-timer.fullscreen-mode .timer-status {
    color: #9ca3af;
}

#pomodoro-timer.fullscreen-mode .progress-ring-circle-bg {
    stroke: #374151;
}

#pomodoro-timer.fullscreen-mode .session-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#pomodoro-timer.fullscreen-mode .session-label {
    color: #9ca3af;
}

#pomodoro-timer.fullscreen-mode .session-value {
    color: #fff;
}

#pomodoro-timer.fullscreen-mode .session-icon {
    color: #8b5cf6;
}

/* Hide non-essential content in fullscreen */
#pomodoro-timer.fullscreen-mode .header-gradient,
#pomodoro-timer.fullscreen-mode .container.mt-5 {
    display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .timer-running .timer-display {
        animation: none;
    }
    .timer-complete {
        animation: none;
    }
}

