/* Social media embeds styling */
.social-embeds {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

html.dark .social-embeds {
    background: #1a1a1a;
    border: 1px solid #333333;
}

.social-embed {
    margin-bottom: 1.5rem;
}

.social-embed:last-child {
    margin-bottom: 0;
}

/* VKontakte embed */
.social-embed--vk iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Twitter embed */
.social-embed--twitter {
    display: flex;
    justify-content: center;
}

.social-embed--twitter .twitter-tweet {
    margin: 0 auto !important;
}

/* Telegram embed */
.social-embed--telegram {
    position: relative;
    cursor: pointer;
}

.tg-preview {
    width: 100%;
    max-width: 300px;
    display: block;
    border-radius: 8px;
    margin: auto;
}

.tg-preview::after {
    content: "▶";
}

/* YouTube embed */
.social-embed--youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.social-embed--youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube thumbnail button */
.youtube-thumbnail-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.youtube-thumbnail-button:hover {
    opacity: 0.8;
}

.youtube-video-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-icon {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.youtube-thumbnail-button:hover .youtube-play-icon {
    transform: scale(1.1);
}

.youtube-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Article actions wrapper - rating, multi-button, share */
.article__actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

/* Ensure .dot displays correctly in navigation */
.nav .dot {
    display: inline-block;
    margin-right: 4px;
}

/* Ensure dropdown menu has proper padding */
.nav-dropdown-menu {
    padding: 1px 0 !important;
}

.nav-dropdown-menu a {
    padding: 12px 16px !important;
}

.article__actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
}

.article__actions-section--center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 350px;
}

.multi-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.multi-button form {
    margin: 0;
    padding: 0;
}

button#multi-button-ean,
button.multi-button-ean {
    background: url(https://discover24.ru/wp-content/themes/spotlight-child/img/read3.png) no-repeat center;
    background-size: contain;
    display: block;
    width: 205px;
    height: 100px;
    border: none;
    cursor: pointer;
    transition: background-image 0.3s ease;
    padding: 0;
}

button#multi-button-ean:hover,
button.multi-button-ean:hover {
    background: url(https://discover24.ru/wp-content/themes/spotlight-child/img/read5.png) no-repeat center;
    background-size: contain;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .article__actions-wrapper {
        gap: 1.5rem;
    }
    
    .article__actions-section {
        flex: 1 1 calc(50% - 0.75rem);
    }
    
    .article__actions-section--center {
        flex: 1 1 100%;
        order: 3;
        max-width: 100%;
    }
    
    button#multi-button-ean,
    button.multi-button-ean {
        width: 250px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .article__actions-wrapper {
        gap: 1rem;
    }
    
    .article__actions-section {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .article__actions-section--center {
        flex: 0 1 auto;
        max-width: none;
    }
    
    button#multi-button-ean,
    button.multi-button-ean {
        width: 150px;
    }
}

.article__share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0;
    padding: 0;
}

html.dark .article__share-button {
    background: #333;
    color: #fff;
}

.article__share-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

html.dark .article__share-button:hover {
    background: #444;
}

.article__share-button svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Social network specific colors on hover */
.article__share-button--twitter:hover {
    background: #1DA1F2;
    color: white;
}

.article__share-button--vk:hover {
    background: #0077FF;
    color: white;
}

.article__share-button--telegram:hover {
    background: #0088cc;
    color: white;
}

.article__share-button--ok:hover {
    background: #ED8207;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-embeds {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .social-embed--vk iframe,
    .social-embed--youtube iframe {
        width: 100%;
        height: auto;
    }
}
