/* Focus Page Styles - Pomodoro Timer */

/* Hero section */
.focus-hero {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #2d3748;
    padding: 8rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.focus-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 55%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.focus-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.focus-hero p {
    font-size: clamp(1.1rem, 2.3vw, 1.4rem);
    opacity: 0.95;
    margin: 0;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pomodoro explanation */
.pomodoro-explanation {
    padding: 6rem 1.5rem;
    background-color: white;
    text-align: center;
}

.explanation-container {
    max-width: 700px;
    margin: 0 auto;
}

.pomodoro-explanation h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 2rem;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pomodoro-explanation p {
    font-size: clamp(1.05rem, 2.1vw, 1.25rem);
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

/* Main Pomodoro Section */
.pomodoro-main {
    padding: 6rem 1.5rem;
    background-color: #f7fafc;
}

.pomodoro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .pomodoro-container {
        grid-template-columns: 1fr;
    }
}

/* Timer Section */
.timer-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Timer Container */
.timer-container {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.timer-container.phase-work {
    border-color: #feb2b2;
    background-color: #fff5f5;
}

.timer-container.phase-break {
    border-color: #9ae6b4;
    background-color: #f0fff4;
}

.timer-phase {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.timer-container.phase-work .timer-phase {
    color: #c53030;
}

.timer-container.phase-break .timer-phase {
    color: #276749;
}

.timer-display {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

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

/* Timer Settings */
.timer-settings {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.timer-settings h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.setting-item label {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
    text-align: center;
}

.setting-item input {
    width: 100px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.setting-item input:focus {
    outline: none;
    border-color: #fcb69f;
    box-shadow: 0 0 0 3px rgba(252, 182, 159, 0.1);
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Task Section */
.task-section {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.task-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.task-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.task-input input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #2d3748;
}

.task-input input::placeholder {
    color: #a0aec0;
    font-weight: 300;
}

.task-input input:focus {
    outline: none;
    border-color: #fcb69f;
    box-shadow: 0 0 0 3px rgba(252, 182, 159, 0.1);
}

.task-input button {
    white-space: nowrap;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Task List */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    background-color: #f7fafc;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.task-item:hover {
    border-color: #fcb69f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-item.completed {
    opacity: 0.7;
    background-color: #f0fff4;
    border-color: #c6f6d5;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #fcb69f;
    flex-shrink: 0;
}

.task-text {
    flex: 1;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.5;
    transition: all 0.3s ease;
    word-break: break-word;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #718096;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.delete-task {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-task:hover {
    background-color: #fed7d7;
    transform: scale(1.1);
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.stats-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stats-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #f7fafc;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #fcb69f;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Progress Bar */
.progress-section {
    margin-top: 2rem;
}

.progress-bar {
    position: relative;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(252, 182, 159, 0.4);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d3748;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #fcb69f;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.notification-text {
    flex: 1;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background-color: #f7fafc;
    color: #4a5568;
    transform: scale(1.1);
}

/* Button styles */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #2d3748;
    box-shadow: 0 4px 6px rgba(252, 182, 159, 0.2);
    border-color: transparent;
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(252, 182, 159, 0.3);
    outline: none;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #f7fafc;
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #fcb69f;
    outline: none;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.btn-primary.small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .pomodoro-main {
        padding: 4rem 1.5rem;
    }
    
    .timer-container {
        padding: 2rem 1.5rem;
    }
    
    .timer-settings,
    .task-section,
    .stats-section {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timer-controls button {
        width: 100%;
    }
    
    .task-input {
        flex-direction: column;
    }
    
    .task-input button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pomodoro-main {
        padding: 3rem 1rem;
    }
    
    .timer-container {
        padding: 1.5rem 1rem;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .timer-settings,
    .task-section,
    .stats-section {
        padding: 1rem;
    }
}