/* =========================================================
   HOMEWORK PAGE — Jovan AI Premium (Zenith v3.0)
   ========================================================= */

.homework-page {
    padding: var(--space-xl) var(--space-lg) 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Section Cards (Glassmorphism) ── */
.section-card {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-premium);
    margin-bottom: var(--space-xl);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.section-title {
    font-size: 1.2rem;
    color: var(--text-header);
    margin-bottom: var(--space-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.homework-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-2xl);
}

/* ── Add Homework Form ── */
.upload-area {
    border: 2px dashed rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(108, 99, 255, 0.02);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.08);
}

.upload-area .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 10px rgba(108, 99, 255, 0.2));
}

.upload-area p {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
}

#hwText {
    width: 100%;
    height: 140px;
    padding: var(--space-md) var(--space-lg);
    border-radius: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    margin-bottom: var(--space-lg);
    background: white;
    transition: all 0.3s ease;
}

#hwText:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-light);
}

/* ── Today's Homework ── */
.hw-item.current {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1.5px solid var(--primary-light);
    padding: var(--space-xl);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.hw-item.current::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    filter: blur(20px);
}

.subject-tag {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.science { background: linear-gradient(45deg, #10b981, #059669); }
.math { background: linear-gradient(45deg, #f43f5e, #e11d48); }
.english { background: linear-gradient(45deg, #3b82f6, #2563eb); }
.sst { background: linear-gradient(45deg, #f59e0b, #d97706); }

.chapter-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hw-questions {
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: var(--space-xl);
    font-size: 1.05rem;
    font-weight: 500;
}

/* .btn-ai-help: inherited from buttons.css */

/* ── Status Sections ── */
.hw-list {
    list-style: none;
    padding: 0;
}

.hw-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.hw-list li:hover {
	transform: translateX(6px);
}

.hw-brief {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}

.hw-brief p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-header);
}

.hw-brief small {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* .btn-complete: inherited from buttons.css */

.completed .hw-brief p {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.4;
}

@media (max-width: 900px) {
    .homework-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}