/* ============================================
   FAVORITES MODULE - LEXINDEX
   Modal, Storage, and UI Styling
   © 2025 Hakan Zehir - All Rights Reserved
   ============================================ */

/* MODAL BASE STYLING */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: rgba(17, 24, 39, 0.7);
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 10px -2px rgba(0, 0, 0, 0.3), 0 0 1px rgba(59, 130, 246, 0.15);
}

.modal-header {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #5FCAFF;
    margin-bottom: 25px;
}

/* MODAL BUTTON CONTAINERS */
.modal-center-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.modal-center-buttons .btn {
    margin: 0 7px;
}

.modal-close-buttons {
    text-align: center;
    margin-top: 20px;
}

.modal-favorites-content {
    max-height: 500px;
    overflow-y: auto;
}

/* FAVORITES ITEM STYLING */
.favorite-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.favorite-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.favorite-item-word {
    font-size: 20px;
    font-weight: 600;
    color: #5FCAFF;
    cursor: text;
}

.favorite-item-details {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.favorite-item-detail {
    cursor: text;
}

.favorite-buttons {
    display: flex;
    gap: 6px;
}

.favorite-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #5FCAFF;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* EMPTY STATE STYLING */
.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    padding: 20px;
    line-height: 1.6;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .favorite-item-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .favorite-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}
