/* program_style.css - Shared styles for program elements (Tags, Speaker Badges) */

/* Global Program Tag Style */
.program-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 550;
    color: #ffffff !important;
    white-space: normal;
    height: auto;
    min-height: 28px;
    padding: 5px 10px;
    margin: 2px 4px 8px 0;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
}

.program-tag.tag-blue {
    background-color: #0298d2;
}

.program-tag.tag-pink {
    background-color: #d12e6b;
}

/* Global Speaker Badge Style */
.speaker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 4px 12px 4px 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto;
    min-height: 32px;
    white-space: normal;
    margin: 2px;
}

.speaker-badge:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    color: #0298d2;
}

.speaker-badge img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* Premium Speaker Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 3000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #f8fafc;
    width: 100%;
    max-width: 900px;
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 50px 100px -20px rgba(15, 23, 42, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Custom Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 32px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #0298d2;
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: background 0.2s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #017dae;
    background-clip: content-box;
    border: 3px solid transparent;
}

.speaker-detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

.modal-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 2rem;
    padding-left: 0.75rem;
    border-left: 3px solid #0298d2;
}

.modal-close {
    position: sticky;
    top: 0px;
    margin-left: auto;
    margin-right: 0rem;
    margin-top: 0rem;
    background: #f1f5f9;
    border: none;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close i {
    font-size: 1.4rem;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0298d2;
    transform: rotate(90deg) scale(1.1);
}

.modal-identity-section {
    margin-bottom: 3rem;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-bottom: 0px;
    border-bottom: none;
}

.modal-header-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    max-height: 400px;
}

.modal-header-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    color: #1e293b;
    margin: 0 0 0.4rem 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.modal-header-info h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    margin: 0;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
}

.modal-info h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    color: #0298d2;
    line-height: 1.4;
}

.modal-bio {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.modal-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    background: transparent;
    width: 100%;
}

.modal-links-inline a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.1rem;
    background: #c42167;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.4rem;
}

.modal-links-inline a:hover {
    background: #a31853;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 33, 103, 0.25);
}

/* modal-links-inline a styles handled above */

@media (max-width: 768px) {
    .modal-content {
        padding: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100% !important;
        border-radius: 0;
        overflow-x: hidden;
    }

    .modal-content::-webkit-scrollbar-track {
        margin: 0;
    }

    .modal-identity-section {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
    }

    .modal-close {
        top: 0;
        margin-right: 0rem;
        margin-top: -1.25rem;
    }


    .speaker-detail-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .modal-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .modal-avatar {
        width: 160px;
        height: 160px;
    }

    .modal-header-img {
        max-width: 220px;
        margin: 0 auto;
    }

    .modal-identity-section {
        margin-bottom: 0rem !important;
    }

    .modal-header-info {
        padding-bottom: 0rem !important;
    }

    .modal-header-info h2 {
        font-size: 1.8rem !important;
    }

    .modal-header-info h5 {
        font-size: 1.05rem !important;
    }

    .modal-bio {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }

    .modal-links-inline {
        justify-content: center;
    }
}

.modal-social-btn i {
    font-size: 1.1rem;
}

body.modal-open {
    overflow: hidden;
}