/* Social Login - OAuth Buttons & Account Linking */

/* ─── Divider ─── */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px;
    gap: 12px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e4ee;
}

.social-login-divider span {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

/* ─── Social Login Buttons Container ─── */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* ─── Base Button ─── */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-social:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

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

.btn-social svg {
    flex-shrink: 0;
}

/* ─── LINE ─── */
.btn-social-line {
    background-color: #06C755;
    color: #ffffff;
    border-color: #06C755;
}

.btn-social-line:hover {
    background-color: #05b34c;
    border-color: #05b34c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}

/* ─── Google ─── */
.btn-social-google {
    background-color: #ffffff;
    color: #3c4043;
    border-color: #dadce0;
}

.btn-social-google:hover {
    background-color: #f8f9fa;
    border-color: #c6c9cd;
    color: #3c4043;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ─── Facebook ─── */
.btn-social-facebook {
    background-color: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}

.btn-social-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

/* ─── Settings Page: Social Accounts List ─── */
.social-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #e1e4ee;
    background: #fafbfc;
    transition: background 0.2s ease;
}

.social-account-item:hover {
    background: #f1f3f7;
}

.social-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-account-info .provider-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-account-info .provider-icon.line-icon {
    background-color: #06C755;
}

.social-account-info .provider-icon.google-icon {
    background-color: #ffffff;
    border: 1px solid #dadce0;
}

.social-account-info .provider-icon.facebook-icon {
    background-color: #1877F2;
}

.social-account-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-account-details .provider-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2a37;
}

.social-account-details .provider-email {
    font-size: 0.82rem;
    color: #94a3b8;
}

.social-account-actions .btn-link-social {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-link-social.link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-link-social.link:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.btn-link-social.unlink {
    background: #fee2e2;
    color: #dc2626;
}

.btn-link-social.unlink:hover {
    background: #fecaca;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* ─── Link Confirm Page ─── */
.oauth-link-confirm-card {
    max-width: 550px;
    margin: 0 auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e1e4ee;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.oauth-link-confirm-card .confirm-message {
    font-size: 0.95rem;
    color: #475467;
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: center;
}

.oauth-link-confirm-card .confirm-message strong {
    color: #1f2a37;
}

/* ─── Responsive ─── */
@media (max-width: 576px) {
    .social-account-item {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .social-account-actions {
        text-align: center;
    }

    .social-account-actions .btn-link-social {
        width: 100%;
        display: block;
        text-align: center;
    }
}
