/**
 * Generic Modal Styles
 * Used by multiple components (speakers, sponsors, etc.)
 * Classes: .modal, .modal-content, .modal-header, .modal-body, .modal-footer, .modal-close, .modal.active
 */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Modal Content Container */
.modal-content {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    margin: 0;
    font-size: 1.5em;
    color: #1A1A1A;
    flex: 1;
}

.modal-subtitle {
    margin: 0 0 8px 0;
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    color: #1A1A1A;
}

/* Modal Body */
.modal-body {
    padding: 24px;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Modal Button */
.modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--text-white);
    background: var(--primary);
    padding: 0.95rem 2.5rem;
    border-radius: 24px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(1, 163, 238, 0.15);
    text-decoration: none;
    display: inline-block;
}

.modal-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(1, 163, 238, 0.25);
    transform: translateY(-2px);
}

.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(1, 163, 238, 0.15);
}

.modal-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 163, 238, 0.3);
}

.modal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.modal-button.secondary {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-dark);
}

.modal-button.secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .modal-title {
        font-size: 1.2em;
    }
}
