/**
 * Social Login Buttons Styles
 * For Google, Facebook, and X (Twitter) OAuth
 */

/* Social Login Container */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

/* Base Social Button Style */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--auth-radius-md, 10px);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-social span {
    position: relative;
    z-index: 1;
}

/* Google Button */
.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}

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

.btn-google:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

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

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

.btn-facebook:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.3);
}

/* X (Twitter) Button */
.btn-twitter {
    background: #000000;
    color: #ffffff;
}

.btn-twitter:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-twitter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Divider - Overrides for after social buttons */
.social-login-buttons + .auth-divider {
    margin: 24px 0;
}

/* Loading State */
.btn-social.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-social.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: social-spin 0.6s linear infinite;
    right: 16px;
}

@keyframes social-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .btn-social {
        height: 48px;
        font-size: 13px;
        gap: 10px;
    }

    .btn-social svg {
        width: 18px;
        height: 18px;
    }
}

/* Error Message for Social Login */
.social-login-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--auth-error, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 16px;
    border-radius: var(--auth-radius-md, 10px);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Connected Account Badge */
.social-connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--auth-success, #22c55e);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.social-connected-badge svg {
    width: 14px;
    height: 14px;
}

/* My Account - Social Connections Section */
.social-connections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.social-connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--auth-input-bg, #2a2a2b);
    border-radius: var(--auth-radius-md, 10px);
    border: 1px solid var(--auth-border, rgba(255, 255, 255, 0.1));
}

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

.social-connection-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-connection-icon.google {
    background: #ffffff;
}

.social-connection-icon.facebook {
    background: #1877F2;
}

.social-connection-icon.twitter {
    background: #000000;
}

.social-connection-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text, #ffffff);
}

.social-connection-details p {
    margin: 0;
    font-size: 12px;
    color: var(--auth-text-muted, rgba(255, 255, 255, 0.5));
}

.social-connection-status {
    font-size: 13px;
    font-weight: 500;
}

.social-connection-status.connected {
    color: var(--auth-success, #22c55e);
}

.social-connection-status.not-connected {
    color: var(--auth-text-muted, rgba(255, 255, 255, 0.5));
}
