.speaker-widget {
    gap: 20px;
    background: #fafafa;
    border: 2px solid #eeee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    min-height: 220px;
}

.speaker-main {
    display: flex;
    gap: 20px;
}

.speaker photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.speaker-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.speaker-name {
    font-size: 17px;
    font-weight: 600;
    color: #222 !important;
    margin: 0;
    padding: 0;
    line-height: 0.9;
}

.speaker-country {
    font-weight: normal;
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.company {
    line-height: 1.1;
    font-size: 14px;
    margin: 7px 0px 0px 0px;
    min-height: 34px;
}

.tech-info {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-top: 0;
    line-height: 1;
    margin-bottom: 20px;
}


.talk-title {
    font-weight: bold;
    font-size: 17px;
    line-height: 1.2;
    color: #477fc4;
    text-decoration: none;
    display: block;
    margin-top: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    min-height: 52px;
}

.talk-title:hover {
    color: #ff9819;
}

.speaker-info-tag {
    display: inline-block;
    background: #e5e5e5;
    text-transform: uppercase;
    border-radius: 10px;
    line-height: 1;
    padding: 8px 8px;
    margin-right: 5px;
    font-size: 11px;
    font-weight: 500;
}

.abstract-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    background: #f9f9f9;
    padding: 0;
    border-radius: 8px;
    margin: 0;
}

.abstract-content p {
    margin-bottom: 0.75em;
    font-size: 0.75em;
    line-height: 1.1;
}

.abstract-content.active {
    max-height: 500px;
    overflow-y: auto;
    opacity: 1;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.7em;
    line-height: 1;
}

.co-speaker {
    font-weight: bold;
    margin-bottom: 8px;
}

.long-title {
    font-weight: 600;
    font-size: 0.8em;
    margin-top: 20px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.speaker-info-tag.tags.data-storytelling,
.speaker-info-tag.tags.dataviz {
    color: white;
    background-color: rgb(111, 67, 162);
}

.speaker-info-tag.tags.bi-innovation {
    color: white;
    background-color: rgb(162, 67, 105);
}

.speaker-info-tag.tags.applied-analytics {
    color: white;
    background-color: rgb(143, 0, 0);
}

.speaker-info-tag.tags.data-culture {
    color: white;
    background-color: rgb(145, 72, 0);
}

.speaker-info-tag.tags.python {
    color: white;
    background-color: rgb(205, 174, 0);
}

.speaker-info-tag.tags.power-bi,
.speaker-info-tag.tags.fabric {
    color: white;
    background-color:  #d47500;
}

/*.speaker-info-tag.tags.fabric {
    color: white;
    background-color: green;
}*/

.speaker-info-tag.tags.management,
.speaker-info-tag.tags.admin,
.speaker-info-tag.tags.ddb {
    color: white;
    background-color: rgb(128, 30, 0);
}

.speaker-info-tag.tags.ai {
    color: white;
    background-color: rgb(0, 143, 145);
}

.speaker-info-tag.tags.keynote {
    color: white;
    background-color: rgb(228, 176, 6);
}

.speaker-info-tag.tags.case-study {
    color: white;
    background-color: rgb(6, 121, 228);
}

.speaker-info-tag.tags.hr-analytics,
.speaker-info-tag.tags.dashboards {
    color: white;
    background-color: rgb(161, 6, 228);
}

.speaker-info-tag.tags.ux,
.speaker-info-tag.tags.devex {
    color: white;
    background-color: rgb(74, 154, 0);
}

.close-abstract {
    margin-top: 0;
    padding: 6px 12px;
    font-size: 0.6em;
    background-color: #617bbd;
    color: #fdfeff;
    border-radius: 6px;
    cursor: pointer;
}

.close-abstract:hover {
    background-color: #ddd;
    color: #617bbd;
}


function speaker_widget_force_scripts() {
    wp_enqueue_script(
        'speaker-widget-toggle-script',
        plugin_dir_url(__FILE__) . 'popup.js',
        [],
        filemtime(plugin_dir_path(__FILE__) . 'popup.js'),
        true
    );
}
add_action('wp_enqueue_scripts', 'speaker_widget_force_scripts');

