/* ==========================================================================
   GENERIC MODAL STYLES
   ========================================================================== */

.c-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.c-modal.is-visible {
    display: flex;
}

.c-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.c-modal__container {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.c-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.c-modal__close:hover {
    color: #fff;
}

.c-modal__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #fff;
}

.c-modal__subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Options List (Report) */
.c-modal__options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.c-modal__option-item {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.c-modal__option-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Share Grid */
.c-modal__share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.c-modal__share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.c-modal__share-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.c-modal__share-item i {
    font-size: 2rem;
}

/* Confirmation Styles */
.c-modal__confirm {
    text-align: center;
}

.c-modal__confirm-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.25rem;
    color: #ff4444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.c-modal__confirm-icon--primary {
    color: var(--color-primary);
    background: rgba(29, 155, 240, 0.05);
    border-color: rgba(29, 155, 240, 0.15);
}

.c-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.c-modal__btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.c-modal__btn--danger {
    background: #ff4444;
    color: #fff;
}

.c-modal__btn--danger:hover {
    background: #cc0000;
}

.c-modal__btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.c-modal__btn--primary:hover {
    background: var(--color-primary-dark, #0081cc);
    transform: translateY(-2px);
}

.c-modal__btn--ghost {
    background: none;
    color: var(--color-text-secondary);
}

.c-modal__btn--ghost:hover {
    color: #fff;
}
