/* ========================================
   FAVORITES SECTION COMPONENT STYLES
   ======================================== */

/* Root container */
#favorites-section-root {
    width: 100%;
    text-align: center;
}

/* Subtle Stats Links */
.favorites-section-subtle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.75rem;
    font-size: 14px;
    color: #6b7280;
}

.favorites-link {
    cursor: pointer;
    transition: color 0.2s;
}

.favorites-link:hover {
    color: #10b981;
}

.favorites-count {
    font-weight: 600;
    color: #374151;
}

.favorites-link:hover .favorites-count {
    color: #10b981;
}

.favorites-separator {
    color: #d1d5db;
}

/* ========================================
   FAVORITES MODAL
   ======================================== */

.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.favorites-modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.favorites-modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Desktop modal styles */
@media (min-width: 768px) {
    .favorites-modal {
        align-items: center;
    }

    .modal-content {
        border-radius: 12px;
        max-height: 70vh;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .favorites-section {
        gap: 6px;
        margin-top: 0.75rem;
        padding: 0 0.25rem;
    }

    .favorites-card {
        padding: 4px 12px;
        min-height: 45px;
    }

    .favorites-count {
        font-size: 18px;
    }

    .favorites-label {
        font-size: 12px;
    }

    .favorites-footer {
        font-size: 10px;
    }
}
