/* ==========================================================================
   Speaker Component & Page Styles
   ========================================================================== */

.filter-sidebar {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-divider);
    padding: 24px;
}

.filter-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-divider);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    user-select: none;
}

.filter-checkbox-label:hover {
    color: var(--accent-orange);
}

.filter-checkbox-input {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border-divider);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.guidelines-box {
    background: linear-gradient(135deg, rgba(245, 108, 10, 0.05) 0%, rgba(245, 108, 10, 0.02) 100%);
    border: 1px dashed var(--accent-orange);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

/* Speaker Cards */
.speaker-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-divider);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 108, 10, 0.3);
}

.speaker-img-container {
    position: relative;
    max-width: 140px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    padding: 5px;
    background: var(--accent-orange);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.speaker-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
}

.speaker-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-name {
    font-size: 1rem;
    color: var(--primary-blue-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.speaker-designation {
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.speaker-institution {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.speaker-country-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue-dark);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-divider);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: #e2e8f0;
    color: var(--accent-orange);
}

/* Square Image styling for single speaker details */
.speaker-detail-img-container {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 24px auto;
    border-radius: 12px;
    padding: 5px;
    background: var(--accent-orange);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.speaker-detail-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid white;
}

.speaker-detail-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
