﻿/* ==============================
   NOTES VIEW
============================== */

/* Shared card styles (notes, highlights, prayers, plans, dict) */
.note-card, .highlight-card, .prayer-card, .plan-card, .dict-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: all 0.2s var(--ease-standard);
    border-left: 4px solid var(--note-color, var(--primary));
}
.note-card:hover, .highlight-card:hover, .dict-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Empty state */
.notes-empty, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}
.notes-empty .material-icons-round, .empty-state .material-icons-round {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: var(--space-md);
}
.notes-empty-title, .empty-state-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.notes-empty-sub, .empty-state-sub {
    font-size: var(--text-sm);
}

/* Notes search */
.notes-search-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    margin-bottom: var(--space-lg);
}
.notes-search-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-main);
    font-size: var(--text-sm);
    color: var(--text);
}
.notes-search-wrap .material-icons-round {
    color: var(--text-secondary);
    font-size: 20px;
}

/* Note card */
.note-card-ref {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--note-color, var(--primary));
    margin-bottom: 4px;
}
.note-card-title {
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: 4px;
}
.note-card-content {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}
.note-card-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
}
.note-card-date {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Notes FAB */
.notes-fab {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: var(--space-lg);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 90;
}

/* Filter tabs */
.filter-tabs, .notes-filter-tabs, .highlights-filter-tabs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
    padding-bottom: 2px;
}

/* Note type selector */
.note-type-selector {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.note-type-btn {
    flex: 1;
    padding: 10px 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s;
}
.note-type-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Note color picker */
.note-color-picker {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.note-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}
.note-color-btn.active {
    border-color: var(--text);
    transform: scale(1.15);
}

/* Note tags editor */
.note-tags-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.note-tags-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.note-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
}
.note-tag-item button {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    padding: 0;
}
.note-tag-item .material-icons-round {
    font-size: 12px;
}

/* Note detail */
.note-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}
.note-detail-ref {
    font-weight: 700;
    font-size: var(--text-md);
}
.note-detail-date {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}
.note-detail-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.note-detail-content {
    font-size: var(--text-sm);
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: var(--space-md);
    color: var(--text);
}
.note-detail-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.note-detail-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}
.note-action-btn {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}
.note-action-btn .material-icons-round {
    font-size: 18px;
}
.note-action-btn.note-action-danger {
    color: var(--danger);
}
.note-go-verse-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Note remove button */
.note-remove {
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
}
.note-remove:hover {
    color: var(--danger);
}
