/**
 * Module: social_share
 * Social sharing buttons - no JavaScript required
 */

/* ============================================
   BASE CONTAINER
   ============================================ */

.t1-social-share {
    margin: 2rem 0;
}

.t1-social-share--center {
    text-align: center;
}

.t1-social-share--right {
    text-align: right;
}

.t1-social-share__heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SHARE LINKS LIST
   ============================================ */

.t1-social-share__list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.t1-social-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--pearl);
    color: var(--charcoal);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.t1-social-share__link:hover {
    transform: translateY(-2px);
}

.t1-social-share__link:active {
    transform: translateY(0);
}

.t1-social-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.t1-social-share__icon svg {
    width: 20px;
    height: 20px;
}

.t1-social-share__label {
    display: none;
}

/* ============================================
   ICONS + LABELS STYLE
   ============================================ */

.t1-social-share--icons-labels .t1-social-share__link {
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.t1-social-share--icons-labels .t1-social-share__label {
    display: inline;
    font-size: 0.875rem;
    font-weight: 500;
}

.t1-social-share--icons-labels .t1-social-share__icon svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   EXPANDABLE STYLE (Pure CSS)
   ============================================ */

.t1-social-share--expandable .t1-social-share__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--pearl);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: background var(--transition-fast);
}

.t1-social-share--expandable .t1-social-share__trigger:hover {
    background: var(--jade-light);
}

.t1-social-share--expandable .t1-social-share__list {
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 50;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.t1-social-share--expandable {
    position: relative;
    display: inline-block;
}

.t1-social-share--expandable .t1-social-share__toggle:checked ~ .t1-social-share__list {
    display: flex;
}

.t1-social-share--expandable .t1-social-share__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border-radius: var(--radius-sm);
}

.t1-social-share--expandable .t1-social-share__link:hover {
    background: var(--pearl);
    transform: none;
}

.t1-social-share--expandable .t1-social-share__label {
    display: inline;
    font-size: 0.875rem;
    font-weight: 500;
}

.t1-social-share--expandable .t1-social-share__icon svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   BRAND COLORS ON HOVER
   ============================================ */

/* Non-Chinese */
.t1-social-share__link--facebook:hover { background: #1877F2; color: white; }
.t1-social-share__link--x:hover { background: #000000; color: white; }
.t1-social-share__link--linkedin:hover { background: #0A66C2; color: white; }
.t1-social-share__link--threads:hover { background: #000000; color: white; }
.t1-social-share__link--bluesky:hover { background: #0085FF; color: white; }
.t1-social-share__link--whatsapp:hover { background: #25D366; color: white; }
.t1-social-share__link--telegram:hover { background: #26A5E4; color: white; }
.t1-social-share__link--reddit:hover { background: #FF4500; color: white; }
.t1-social-share__link--pinterest:hover { background: #E60023; color: white; }
.t1-social-share__link--line:hover { background: #06C755; color: white; }
.t1-social-share__link--email:hover { background: var(--charcoal); color: white; }
.t1-social-share__link--sms:hover { background: var(--charcoal); color: white; }

/* Chinese */
.t1-social-share__link--weibo:hover { background: #E6162D; color: white; }
.t1-social-share__link--tieba:hover { background: #2932E1; color: white; }
.t1-social-share__link--qq:hover { background: #12B7F5; color: white; }
.t1-social-share__link--qzone:hover { background: #FECE00; color: #333; }
.t1-social-share__link--douban:hover { background: #007722; color: white; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .t1-social-share__list {
        gap: 0.375rem;
    }
    
    .t1-social-share__link {
        width: 36px;
        height: 36px;
    }
    
    .t1-social-share__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .t1-social-share--icons-labels .t1-social-share__link {
        padding: 0.375rem 0.75rem;
    }
    
    .t1-social-share--icons-labels .t1-social-share__label {
        font-size: 0.8125rem;
    }
}