/**
 * Google SSO Auth - Public Styles
 * 
 * @package GoogleSSOAuth
 */

/* Container Styles */
.google-sso-container {
    margin: 20px 0;
    text-align: center;
}

/* Separator */
.google-sso-separator {
    margin: 15px 0;
    position: relative;
    text-align: center;
}

.google-sso-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.google-sso-separator span {
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Button Container */
.google-sso-button-container {
    margin: 15px 0;
}

/* Base Button Styles */
.google-sso-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #3c4043;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    min-width: 200px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.google-sso-login-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #3c4043;
}

.google-sso-login-btn:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.google-sso-login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

/* Google Icon */
.google-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

/* Button Text */
.button-text {
    white-space: nowrap;
}

/* Dark Theme */
.google-sso-login-btn.dark {
    background: #4285f4;
    border-color: #4285f4;
    color: #fff;
}

.google-sso-login-btn.dark:hover {
    background: #3367d6;
    border-color: #3367d6;
    color: #fff;
}

.google-sso-login-btn.dark:active {
    background: #2851a3;
    border-color: #2851a3;
}

/* Light Theme */
.google-sso-login-btn.light {
    background: #fff;
    border: 2px solid #4285f4;
    color: #4285f4;
}

.google-sso-login-btn.light:hover {
    background: #f8f9ff;
    color: #4285f4;
}

.google-sso-login-btn.light:active {
    background: #e8eaff;
}

/* Default Theme (same as base) */
.google-sso-login-btn.default {
    /* Uses base styles */
}

/* Custom Theme - allows for user customization */
.google-sso-login-btn.custom {
    /* Base styles that can be overridden by custom CSS */
}

/* Widget Specific Styles */
.google-sso-widget {
    text-align: center;
    margin: 15px 0;
}

.google-sso-login-btn.widget-btn {
    min-width: 100%;
    padding: 10px 16px;
    font-size: 13px;
}

/* Shortcode Specific Styles */
#google-sso-shortcode-btn {
    margin: 10px 0;
}

/* Error Messages */
.google-sso-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    padding: 12px 16px;
    margin: 15px 0;
    font-size: 14px;
}

/* Loading State */
.google-sso-login-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.google-sso-login-btn.loading .button-text::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .google-sso-login-btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
    }
    
    .google-sso-container {
        margin: 15px 0;
    }
    
    .google-sso-separator span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .google-sso-login-btn {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .google-icon {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .google-sso-login-btn {
        border-width: 2px;
        border-color: #000;
    }
    
    .google-sso-login-btn:hover {
        background: #f0f0f0;
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .google-sso-login-btn {
        transition: none;
    }
    
    .google-sso-login-btn.loading .button-text::after {
        animation: none;
        content: '...';
    }
}

/* Print Styles */
@media print {
    .google-sso-container,
    .google-sso-login-btn {
        display: none !important;
    }
}

/* RTL Support */
[dir="rtl"] .google-icon {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .google-sso-login-btn.widget-btn .google-icon {
    margin-left: 10px;
}

/* Focus Visible Support */
.google-sso-login-btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Accessibility Improvements */
.google-sso-login-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}