/* Widget Social Styles - Based on Figma Design */

/* Container for social widgets */
.widget-social-container {
    display: flex;
    flex-direction: horizontal;
    gap: 48px;
}

.widget-social-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Widget Social Stack */
.widget-social-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Widget Card */
.widget-social {
    position: relative;
    width: 100%;
    max-width: 280px;
    background: var(--background-bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 0.5px 1px rgba(33, 37, 41, 0.08);
    overflow: hidden;
}

.aside__right .widget-social {
    width: 100%;
    max-width: none;
}

/* Widget Header - colored banner */
.widget-social__header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.widget-social__header--telegram {
    background: #28a6e1;
}

.widget-social__header--youtube {
    background: #ffe3e3;
}

.widget-social__header--vk {
    background: #5181b8;
}

.widget-social__header--discord {
    background: #5865f2;
}

/* Logo in header */
.widget-social__logo {
    width: 50px;
    height: 28px;
}

.widget-social__logo--youtube {
    width: 40px;
    height: 28px;
}

.widget-social__logo svg,
.widget-social__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Avatar - positioned overlapping header */
.widget-social__avatar {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: var(--background-bg-secondary, #f0f2f5);
    z-index: 2;
}

.widget-social__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content section */
.widget-social__content {
    padding: 32px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Info text block */
.widget-social__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-social__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-primary, #212529);
    opacity: 0.64;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-social__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
    color: var(--text-primary, #212529);
}

.widget-social__subscribers {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-primary, #212529);
    opacity: 0.64;
}

/* Subscribe button */
.widget-social__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 32px;
    padding: 0 10px;
    background: var(--background-bg-primary, #ffffff);
    border: 1px solid #dee2e6;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.widget-social__button:hover {
    background: var(--background-component-hovered, #f8f9fa);
}

.widget-social__button-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-primary, #212529);
}

.widget-social__button-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-social__button-icon svg {
    width: 6px;
    height: 10.67px;
    fill: var(--text-primary, #212529);
}

/* Compact Social Button */
.widget-social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 20px 0 0;
    background: var(--background-bg-primary, #ffffff);
    border: 1px solid #dee2e6;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.widget-social-btn:hover {
    background: var(--background-component-hovered, #f8f9fa);
}

.widget-social-btn__left {
    display: flex;
    align-items: center;
    gap: 0;
}

.widget-social-btn__icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -1px;
    margin-top: -1px;
    margin-bottom: -1px;
    border-radius: 9999px 0 0 9999px;
}

.widget-social-btn__icon-wrapper--telegram {
    background: #28a6e1;
}

.widget-social-btn__icon-wrapper--youtube {
    background: #ff0000;
}

.widget-social-btn__icon {
    width: 24px;
    height: 24px;
}

.widget-social-btn__icon svg {
    width: 100%;
    height: 100%;
}

.widget-social-btn__content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.widget-social-btn__logo {
    width: 18px;
    height: 13px;
}

.widget-social-btn__logo svg {
    width: 100%;
    height: 100%;
}

.widget-social-btn__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: var(--text-primary, #212529);
}

.widget-social-btn__chevron {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-social-btn__chevron svg {
    width: 6px;
    height: 10.67px;
    fill: var(--text-primary, #212529);
}

/* Dark mode styles */
html.dark .widget-social {
    background: var(--background-bg-primary, #212529);
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
}

html.dark .widget-social__avatar {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--background-bg-secondary, #1a1d20);
}

html.dark .widget-social__label,
html.dark .widget-social__title,
html.dark .widget-social__subscribers {
    color: var(--text-primary, #ffffff);
}

html.dark .widget-social__button {
    background: var(--background-bg-primary, #212529);
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .widget-social__button:hover {
    background: var(--background-component-hovered, #343a40);
}

html.dark .widget-social__button-text {
    color: var(--text-primary, #ffffff);
}

html.dark .widget-social__button-icon svg {
    fill: var(--text-primary, #ffffff);
}

html.dark .widget-social__button-icon img {
    filter: brightness(0) invert(1);
}

html.dark .widget-social-btn {
    background: var(--background-bg-primary, #212529);
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .widget-social-btn:hover {
    background: var(--background-component-hovered, #343a40);
}

html.dark .widget-social-btn__text {
    color: var(--text-primary, #ffffff);
}

html.dark .widget-social-btn__chevron svg {
    fill: var(--text-primary, #ffffff);
}

/* Responsive */
@media (max-width: 768px) {
    .widget-social-container {
        flex-direction: column;
        gap: 32px;
    }

    .widget-social {
        width: 100%;
        max-width: 310px;
    }

    .widget-social-btn {
        max-width: 310px;
    }
}

@media (max-width: 480px) {
    .widget-social {
        max-width: 100%;
    }

    .widget-social-btn {
        max-width: 100%;
    }
}
