/* notes.css - Redesigned Study Materials Hub */
/* Inter loaded via css/local-fonts.css */

.notes-content {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    font-size: 1.1rem;
    color: #333;
}

/* ── Hero Section ── */
.notes-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    margin-bottom: 3rem;
}

.notes-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.notes-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.notes-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.notes-hero h1 .gradient-text {
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notes-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* ── Stats Bar ── */
.notes-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.notes-stat {
    text-align: center;
}

.notes-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.notes-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ── Materials Grid ── */
.study-materials-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.materials-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.materials-section-title i {
    color: #4f46e5;
    font-size: 1.3rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 3rem;
}

.material-card {
    --accent: #6366f1;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
}

.material-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.28s;
    pointer-events: none;
}

.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px color-mix(in srgb, var(--accent) 22%, transparent);
    border-color: var(--accent);
}

.material-card:hover::after {
    opacity: 0.04;
}

/* Card accent colors */
.material-card:nth-child(1) { --accent: #f59e0b; }
.material-card:nth-child(2) { --accent: #6366f1; }
.material-card:nth-child(3) { --accent: #0ea5e9; }
.material-card:nth-child(4) { --accent: #8b5cf6; }
.material-card:nth-child(5) { --accent: #ec4899; }
.material-card:nth-child(6) { --accent: #10b981; }

.material-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    transition: all 0.28s;
}

.material-card:hover .material-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.material-icon.textbook,
.material-icon.notes,
.material-icon.mcqs,
.material-icon.practice-test,
.material-icon.book-mcqs,
.material-icon.question-paper {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.material-card:hover .material-icon.textbook,
.material-card:hover .material-icon.notes,
.material-card:hover .material-icon.mcqs,
.material-card:hover .material-icon.practice-test,
.material-card:hover .material-icon.book-mcqs,
.material-card:hover .material-icon.question-paper {
    background: var(--accent);
    color: #fff;
}

.material-body {
    flex: 1;
    min-width: 0;
}

.material-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.3;
}

.material-description {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.material-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.material-tag.free {
    background: #ecfdf5;
    color: #059669;
}

.material-tag.popular {
    background: #eff6ff;
    color: #2563eb;
}

.material-tag.new {
    background: #fef3c7;
    color: #d97706;
}

.material-arrow {
    color: #cbd5e1;
    font-size: 1rem;
    align-self: center;
    transition: all 0.28s;
    flex-shrink: 0;
}

.material-card:hover .material-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ── Quick Links ── */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.1rem 1.4rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(14, 165, 233, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-link::after {
    content: '→';
    position: absolute;
    right: 1.2rem;
    font-size: 1.1rem;
    color: #cbd5e1;
    transition: all 0.3s;
    font-weight: 400;
}

.quick-link:hover {
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.15);
    color: #4f46e5;
}

.quick-link:hover::before {
    opacity: 1;
}

.quick-link:hover::after {
    color: #4f46e5;
    transform: translateX(4px);
}

.quick-link i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.quick-link:nth-child(1) i {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.quick-link:nth-child(2) i {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.quick-link:nth-child(3) i {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.quick-link:nth-child(4) i {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.quick-link:hover i {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ── SEO Content ── */
.seo-section {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.seo-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.seo-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.seo-section p,
.seo-section li {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.seo-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.seo-section li {
    margin-bottom: 0.4rem;
}

/* ── FAQ Schema ── */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.faq-a {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Go Back ── */
.go-back-section {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.go-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    background: #f1f5f9;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.go-back-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .notes-hero {
        padding: 3rem 1.2rem 2rem;
        border-radius: 0 0 24px 24px;
        margin-bottom: 2rem;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr 1fr;
    }

    .notes-stats {
        gap: 1.5rem;
    }

    .seo-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quick-links {
        grid-template-columns: 1fr;
    }

    .material-card {
        padding: 1.5rem;
    }
}

/* ── Class Notes Grid ── */
.class-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.class-note-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.class-note-card.class-9 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
}

.class-note-card.class-10 {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #6366f1 100%);
}

.class-note-card.class-11 {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
}

.class-note-card.class-12 {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0d9488 100%);
}

.class-note-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.class-note-card:hover .class-note-glow {
    transform: scale(1.4);
}

.class-note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.class-note-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.class-note-card:hover .class-note-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(-5deg);
}

.class-note-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.class-note-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #fff;
    line-height: 1.3;
}

.class-note-content p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.class-note-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.class-note-card:hover .class-note-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .class-notes-grid {
        grid-template-columns: 1fr;
    }

    .class-note-content h3 {
        font-size: 1.05rem;
    }
}