/**
 * WIA Social Login Styles
 *
 * @package WIA_Social_Login
 * @version 1.0.0
 */

/* Social Login Buttons Container */
.wia-social-login-buttons {
    margin: 20px 0;
    padding: 0;
}

/* Error Message */
.wia-social-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.wia-social-error p {
    margin: 0;
    font-size: 14px;
}

/* Separator */
.wia-social-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

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

.wia-social-separator span {
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

/* Buttons Container */
.wia-social-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* Social Button Base */
.wia-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 320px;
}

.wia-social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

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

.wia-social-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Kakao Button */
.wia-kakao-button {
    background: #FEE500;
    color: #000000;
}

.wia-kakao-button:hover {
    background: #f9de00;
    color: #000000;
}

/* Naver Button */
.wia-naver-button {
    background: #03C75A;
    color: #ffffff;
}

.wia-naver-button:hover {
    background: #02b350;
    color: #ffffff;
}

/* WordPress Login Page Specific Styles */
body.login .wia-social-login-buttons {
    margin-top: 16px;
}

body.login .wia-social-separator {
    margin: 16px 0;
}

body.login .wia-social-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

body.login .wia-social-button {
    width: 100%;
    max-width: 100%;
}

/* Responsive Design */
@media (min-width: 768px) {
    .wia-social-buttons-container {
        flex-direction: row;
        justify-content: center;
    }

    .wia-social-button {
        flex: 1;
        max-width: 250px;
    }

    body.login .wia-social-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    body.login .wia-social-button {
        width: 100%;
        max-width: 100%;
    }
}

/* Loading State */
.wia-social-button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wia-social-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 15px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: wia-spin 0.6s linear infinite;
}

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

/* Admin Settings Page Styles */
.wia-social-login-settings .form-table th {
    width: 200px;
}

.wia-social-login-settings code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
}

.wia-social-login-settings .button-small {
    height: auto;
    padding: 4px 10px;
    font-size: 12px;
}
