/**
 * AG Social Login Styles
 */

/* Login Buttons Container - Top Position */
.ag-social-login-top {
    margin: 0 0 15px 0;
    padding: 0;
}

.ag-social-login-top .ag-social-buttons {
    margin-bottom: 15px;
}

.ag-social-login-top .ag-social-login-divider {
    margin-bottom: 0;
}

/* Login Buttons Container */
.ag-social-login {
    margin: 15px 0;
    padding: 10px 0;
}

.ag-social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.ag-social-login-divider::before,
.ag-social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.ag-social-login-divider span {
    padding: 0 15px;
    color: #777;
    font-size: 14px;
    text-transform: lowercase;
}

/* Buttons Container - Horizontal */
.ag-social-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Button Base */
.ag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

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

/* Google Button */
.ag-btn-google {
    background: #ffffff;
    color: #444;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ag-btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
}

.ag-btn-google:active {
    background: #f1f3f4;
}

/* Large Button */
.ag-btn-large {
    padding: 14px 28px;
    font-size: 16px;
    min-width: 100%;
    width: 100%;
}

/* WooCommerce My Account page - reduce header padding */
.woocommerce-account .woocommerce h2:first-child,
.woocommerce-account .woocommerce-MyAccount-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Login Prompt Popup */
.ag-login-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ag-login-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ag-login-prompt-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    padding: 30px;
    animation: ag-popup-appear 0.3s ease;
}

@keyframes ag-popup-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ag-login-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ag-login-prompt-close:hover {
    background: #f5f5f5;
    color: #333;
}

.ag-login-prompt-content {
    text-align: center;
}

.ag-login-prompt-icon {
    margin-bottom: 15px;
}

.ag-login-prompt-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.ag-login-prompt-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.ag-login-prompt .ag-btn-google {
    width: 100%;
    margin-bottom: 15px;
}

.ag-login-prompt-later {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
}

.ag-login-prompt-later:hover {
    color: #333;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .ag-btn {
        width: 100%;
        min-width: unset;
    }
    
    .ag-social-buttons {
        flex-direction: column;
    }
    
    .ag-login-prompt-modal {
        padding: 25px 20px;
    }
    
    .ag-login-prompt-title {
        font-size: 18px;
    }
}
