/* Study Notes — public pages */
.notes-page {
    color: #1e293b;
    line-height: 1.65;
    font-size: 17px;
}

.notes-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 22px;
}

.notes-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #14532d;
    font-weight: 700;
}

.notes-hero p {
    margin: 0;
    color: #475569;
    max-width: 720px;
}

.notes-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.notes-stat-pill {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 600;
}

.notes-search-bar {
    display: flex;
    gap: 10px;
    margin: 18px 0 8px;
    max-width: 760px;
}

.notes-search-bar input[type="text"],
.notes-search-bar input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
}

.notes-search-bar button {
    border: 0;
    background: #15803d;
    color: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.notes-search-bar button:hover {
    background: #166534;
}

.notes-breadcrumb {
    margin-bottom: 16px;
    font-size: 15px;
    color: #64748b;
}

.notes-breadcrumb a {
    color: #15803d;
    text-decoration: none;
}

.notes-breadcrumb a:hover {
    text-decoration: underline;
}

.notes-course-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.notes-course-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 18px;
}

.notes-course-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
}

.notes-course-header a.course-link {
    color: #15803d;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.notes-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px 18px 18px;
}

.notes-subject-card {
    display: block;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    color: #0f172a;
    background: #f0fdf4;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.notes-subject-card:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
    color: #14532d;
}

.notes-subject-card .subject-name {
    font-weight: 700;
    font-size: 17px;
    display: block;
    margin-bottom: 4px;
}

.notes-subject-card .subject-count {
    font-size: 13px;
    color: #64748b;
}

.notes-resource-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notes-resource-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.notes-resource-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: #0f172a;
}

.notes-resource-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.notes-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}

.notes-type-badge.pdf { background: #fee2e2; color: #b91c1c; }
.notes-type-badge.word { background: #dbeafe; color: #1d4ed8; }
.notes-type-badge.excel { background: #dcfce7; color: #15803d; }
.notes-type-badge.image { background: #fef3c7; color: #b45309; }
.notes-type-badge.youtube { background: #fecaca; color: #dc2626; }

.notes-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.notes-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.notes-btn-primary {
    background: #15803d;
    color: #fff;
}

.notes-btn-primary:hover {
    background: #166534;
    color: #fff;
    text-decoration: none;
}

.notes-btn-outline {
    background: #fff;
    color: #15803d;
    border: 1px solid #86efac;
}

.notes-btn-outline:hover {
    background: #f0fdf4;
    text-decoration: none;
    color: #14532d;
}

.notes-preview {
    margin-top: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.notes-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.notes-preview iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

.notes-preview object,
.notes-preview embed {
    width: 100%;
    min-height: 480px;
    border: 0;
}

.notes-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.notes-empty strong {
    color: #334155;
}

@media (max-width: 600px) {
    .notes-hero h1 { font-size: 24px; }
    .notes-subject-grid { grid-template-columns: 1fr 1fr; }
    .notes-search-bar { flex-direction: column; }
    .notes-search-bar button { width: 100%; }
}
