﻿/* ==========================================
   LIST MODAL STYLES
   Add this to your existing site.css or include as separate file
   ========================================== */

/* Show More Button */
.btn-show-more {
    width: 100%;
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-show-more:hover {
        background: rgba(124, 58, 237, 0.1);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
    }

    .btn-show-more i {
        transition: transform 0.3s ease;
    }

    .btn-show-more:hover i {
        transform: scale(1.2);
    }

/* Modal Content Styling */
.list-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.list-modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.list-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

    .list-modal-title i {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.list-modal-body {
    padding: 2rem;
    max-height: 65vh;
    overflow-y: auto;
}

    /* Custom scrollbar for modal body */
    .list-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .list-modal-body::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 10px;
    }

    .list-modal-body::-webkit-scrollbar-thumb {
        background: var(--border-light);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

        .list-modal-body::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

.list-modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    border-radius: 0 0 20px 20px;
}

/* List Item Badge in Modal */
.list-item-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

    .list-item-badge:hover {
        background: var(--bg-card-hover);
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
    }

    .list-item-badge i {
        color: var(--primary-color);
        font-size: 1rem;
        flex-shrink: 0;
    }

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

    .modal-backdrop.show {
        opacity: 0.85;
    }

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Ensure close button is visible on dark background */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .list-modal-body {
        max-height: 55vh;
    }
}

@media (max-width: 768px) {
    .list-modal-header,
    .list-modal-body,
    .list-modal-footer {
        padding: 1.25rem;
    }

    .list-modal-title {
        font-size: 1.25rem;
    }

    .list-item-badge {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .list-modal-body {
        max-height: 50vh;
    }

    .btn-show-more {
        font-size: 0.85rem;
        padding: 0.65rem 0.875rem;
    }
}

@media (max-width: 576px) {
    .list-modal-header,
    .list-modal-body,
    .list-modal-footer {
        padding: 1rem;
    }

    .list-modal-title {
        font-size: 1.1rem;
    }

    .list-item-badge {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }

    .btn-show-more {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Ensure modal appears above all content */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

/* Additional improvements for feature card when it has show more button */
.feature-card:has(.btn-show-more) {
    display: flex;
    flex-direction: column;
}

    .feature-card:has(.btn-show-more) > div:first-of-type {
        flex: 1;
    }
