/**
 * Advisory Notes Section Styles
 */

/* Notes Grid - Card Layout */
.notes-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Note Card */
.advisory-note-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advisory-note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ffd32f;
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.note-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.note-card-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.note-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.view-link {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.priority-low {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.priority-info {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.note-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Detail View */
.note-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.note-detail {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.note-detail-header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.note-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.note-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.note-detail-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.note-detail-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.note-detail-content p {
    margin-bottom: 1.5rem;
}

.note-detail-content p:last-child {
    margin-bottom: 0;
}

.note-detail-content strong {
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.note-detail-content p + p {
    margin-top: 1.5rem;
}

.note-detail-content strong + br {
    display: none;
}

.note-detail-content ul {
    margin: 0.25rem 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.note-detail-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.note-detail-content li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* References Section */
.note-references {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.note-references h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.references-list li {
    margin-bottom: 0.75rem;
}

.references-list li:last-child {
    margin-bottom: 0;
}

.references-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.references-list a:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

.references-list svg {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advisory-note-card {
        padding: 1rem;
    }
    
    .note-detail {
        padding: 1.5rem;
    }
    
    .note-detail-title {
        font-size: 1.5rem;
    }
    
    .note-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
