/**
 * Add to Collection Modal Styles - The Arabic Poetry
 * Navy/Terracotta color system
 */

/* ============================================
   ACTION BUTTON STYLES (on poem.php)
   ============================================ */
.poem-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn {
    font-family: 'Crimson Pro', Georgia, serif;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 1.035rem; /* 0.9rem + 15% */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(149, 71, 45, 0.1);
    border-color: #95472d;
    color: #95472d;
}

.action-btn svg {
    flex-shrink: 0;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.add-to-collection-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay-collection {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.modal-content-collection {
    position: relative;
    background: #0a1e43;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   MODAL HEADER
   ============================================ */
.modal-header-collection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-header-collection h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.725rem; /* 1.5rem + 15% */
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.modal-close-collection {
    background: transparent;
    border: none;
    color: #A0A0A0;
    font-size: 2.3rem; /* 2rem + 15% */
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close-collection:hover {
    color: #FFFFFF;
}

/* ============================================
   MODAL BODY
   ============================================ */
.modal-body-collection {
    padding: 20px 30px;
    flex: 1;
    overflow-y: auto;
}

.collections-list {
    margin-bottom: 20px;
}

.loading-state,
.empty-collections {
    font-family: 'Crimson Pro', Georgia, serif;
    text-align: center;
    padding: 40px 20px;
    color: #A0A0A0;
    font-size: 1.15rem; /* 1rem + 15% */
}

.collection-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collection-checkbox-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #95472d;
}

.collection-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.collection-checkbox-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.collection-checkbox-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.15rem; /* 1rem + 15% */
    font-weight: 600;
    color: #FFFFFF;
}

.collection-checkbox-meta {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.92rem; /* 0.8rem + 15% */
    color: #707070;
}

/* ============================================
   CREATE NEW COLLECTION INLINE
   ============================================ */
.btn-new-collection-inline {
    font-family: 'Crimson Pro', Georgia, serif;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #95472d;
    font-size: 1.035rem; /* 0.9rem + 15% */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-new-collection-inline:hover {
    background: rgba(149, 71, 45, 0.1);
    border-color: #95472d;
}

.create-form {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.create-form input {
    font-family: 'Crimson Pro', Georgia, serif;
    width: 100%;
    padding: 10px 14px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 1.035rem; /* 0.9rem + 15% */
    margin-bottom: 12px;
}

.create-form input:focus {
    outline: none;
    border-color: #95472d;
}

.form-actions {
    display: flex;
    gap: 8px;
}

.btn-cancel-inline,
.btn-create-inline {
    font-family: 'Crimson Pro', Georgia, serif;
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.035rem; /* 0.9rem + 15% */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-inline {
    background: transparent;
    color: #A0A0A0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel-inline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.btn-create-inline {
    background: #95472d;
    color: #FFFFFF;
}

.btn-create-inline:hover {
    background: #7a3a24;
}

/* ============================================
   MODAL FOOTER
   ============================================ */
.modal-footer-collection {
    padding: 16px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.btn-done-collection {
    font-family: 'Crimson Pro', Georgia, serif;
    width: 100%;
    padding: 12px;
    background: #95472d;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 1.15rem; /* 1rem + 15% */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-done-collection:hover {
    background: #7a3a24;
}

/* ============================================
   SUCCESS TOAST
   ============================================ */
.collection-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #95472d;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.035rem; /* 0.9rem + 15% */
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .action-btn span {
        display: none;
    }

    .action-btn {
        padding: 10px;
    }

    .modal-content-collection {
        max-width: 100%;
        max-height: 90vh;
    }

    .modal-header-collection,
    .modal-body-collection,
    .modal-footer-collection {
        padding: 20px;
    }

    .collection-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .modal-header-collection h3 {
        font-size: 1.5rem;
    }

    .modal-content-collection {
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }
}
