/* Modern Social Login Styles */
.wpuf-modern-social-container {
    max-width: 653px;
    padding: 20px;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}

.wpuf-social-platforms-grid {
    display: none;
}

.wpuf-social-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wpuf-social-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.wpuf-social-platform-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Platform specific colors */
.wpuf-social-platform-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.wpuf-social-platform-btn.google {
    background: white;
    border-color: #dadce0;
}

.wpuf-social-platform-btn.google:hover {
    border-color: #1a73e8;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.wpuf-social-platform-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.wpuf-social-platform-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.wpuf-social-platform-btn.github {
    background: linear-gradient(135deg, #24292e, #2f363d);
}

.wpuf-social-platform-btn.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

/* White icons for colored backgrounds */
.wpuf-social-platform-btn.facebook img,
.wpuf-social-platform-btn.linkedin img,
.wpuf-social-platform-btn.twitter img,
.wpuf-social-platform-btn.github img,
.wpuf-social-platform-btn.instagram img {
    filter: brightness(0) invert(1);
}

/* Separator */
.wpuf-social-separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #6b7280;
    font-size: 16px;
}

.wpuf-social-separator::before,
.wpuf-social-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.wpuf-social-separator::before {
    margin-right: 16px;
}

.wpuf-social-separator::after {
    margin-left: 16px;
}

.wpuf-social-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.wpuf-social-platform-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Platform specific colors */
.wpuf-social-platform-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.wpuf-social-platform-btn.google {
    background: white;
    border-color: #dadce0;
}

.wpuf-social-platform-btn.google:hover {
    border-color: #1a73e8;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.wpuf-social-platform-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.wpuf-social-platform-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.wpuf-social-platform-btn.github {
    background: linear-gradient(135deg, #24292e, #2f363d);
}

.wpuf-social-platform-btn.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

/* White icons for colored backgrounds */
.wpuf-social-platform-btn.facebook img,
.wpuf-social-platform-btn.linkedin img,
.wpuf-social-platform-btn.twitter img,
.wpuf-social-platform-btn.github img,
.wpuf-social-platform-btn.instagram img {
    filter: brightness(0) invert(1);
}

/* Separator */
.wpuf-social-separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #6b7280;
    font-size: 16px;
    text-align: center;
    justify-content: center;
}

.wpuf-social-separator::before,
.wpuf-social-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.wpuf-social-separator::before {
    margin-right: 16px;
}

.wpuf-social-separator::after {
    margin-left: 16px;
}

/* Individual sign-in buttons */
.wpuf-social-signin-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.wpuf-social-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding: 20px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 80px;
    background: white;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    transition: all 0.2s ease;
    position: relative;
    gap: 12px;
    box-sizing: border-box;
}

.wpuf-social-signin-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpuf-social-signin-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.wpuf-social-signin-btn.google img {
    filter: none;
}

.wpuf-social-signin-btn.facebook img {
    filter: none;
}

.wpuf-social-signin-btn.linkedin img {
    filter: none;
}

.wpuf-social-signin-btn.twitter img {
    filter: none;
}

.wpuf-social-signin-btn.github img {
    filter: none;
}

/* Responsive design */
@media (max-width: 480px) {
    .wpuf-social-platforms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .wpuf-social-platform-btn {
        width: 70px;
        height: 70px;
    }

    .wpuf-social-platform-btn img {
        width: 28px;
        height: 28px;
    }

    .wpuf-modern-social-container {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .wpuf-social-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide old social login styles when modern is active */
.wpuf-modern-social-container .jssocials-shares {
    display: none;
}

/* Loading state */
.wpuf-social-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wpuf-social-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: wpuf-spin 1s linear infinite;
    z-index: 2;
}

@keyframes wpuf-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ripple effect */
.wpuf-social-platform-btn {
    position: relative;
    overflow: hidden;
}

.wpuf-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: wpuf-ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

@keyframes wpuf-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Focus states for accessibility */
.wpuf-social-platform-btn:focus,
.wpuf-social-signin-btn:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpuf-social-platform-btn,
    .wpuf-social-signin-btn {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wpuf-social-platform-btn,
    .wpuf-social-signin-btn {
        transition: none;
    }

    .wpuf-ripple {
        animation: none;
    }

    .wpuf-social-loading::after {
        animation: none;
    }
}
