/* Timer Section */
.timer-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.timer-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Timer Display */
.timer-display {
    margin-bottom: 3rem;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.timer-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.timer-fill {
    fill: none;
    stroke: var(--hub-orange);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48; /* 2 * π * 90 */
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.timer-mode {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hub-orange);
    margin-bottom: 0.25rem;
}

.timer-cycle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Timer Controls */
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Quick Settings */
.quick-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--card-shadow);
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hub-orange), var(--hub-dark-red));
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Chart Container */
.chart-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.chart-container h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.weekly-chart {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 200px;
    gap: 0.5rem;
    padding: 1rem 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--hub-orange), var(--hub-dark-red));
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    min-height: 20px;
    position: relative;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.chart-bar:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.chart-bar::after {
    content: attr(data-day);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.chart-bar:hover::before {
    opacity: 1;
}

/* Stats Actions */
.stats-actions {
    text-align: center;
}

/* Settings Section */
.settings-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.settings-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.settings-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hub-orange);
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.settings-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Timer States */
.timer-working .timer-fill {
    stroke: var(--hub-orange);
}

.timer-break .timer-fill {
    stroke: var(--success-color);
}

.timer-long-break .timer-fill {
    stroke: var(--info-color);
}

.timer-working .timer-mode {
    color: var(--hub-orange);
}

.timer-break .timer-mode {
    color: var(--success-color);
}

.timer-long-break .timer-mode {
    color: var(--info-color);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.timer-pulse {
    animation: pulse 2s infinite;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--hub-orange);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform var(--transition-normal);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .quick-settings {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .weekly-chart {
        height: 150px;
    }
    
    .settings-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .settings-actions .control-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-mode {
        font-size: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}