/* Hakeem Clinic Appointments — Google Login (Phase 2) front-end styles */

.hakeem-google-login {
    min-height: 40px;
    margin: 8px 0;
}

.hakeem-google-login iframe {
    max-width: 100%;
}

.hakeem-google-status {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #00a32a;
}

.hakeem-google-status--error {
    color: #b32d2e;
}

.hakeem-google-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--color-border, #dcdcde);
    border-radius: 8px;
    background: var(--color-surface, #f6f7f7);
}

.hakeem-google-account__name {
    font-weight: 600;
}

.hakeem-google-account .hakeem-google-logout.button {
    font-family: var(--font-body, 'Inter', Arial, sans-serif);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1.5px solid var(--color-emerald-text, #14352b);
    background: transparent;
    color: var(--color-emerald-text, #14352b);
    padding: 8px 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hakeem-google-account .hakeem-google-logout.button:hover {
    background: var(--color-emerald, #0f6b4f);
    border-color: var(--color-emerald, #0f6b4f);
    color: var(--color-white, #ffffff);
}

/* --- Login modal (proper dialog, not inline) --- */

.hakeem-login-open {
    cursor: pointer;
}

/* "Continue with Google" trigger — match the theme's .btn/.btn-primary
   design (theme loads its own CSS vars; fall back to brand colors). */
.hakeem-google-wrap {
    margin: 10px 0;
    text-align: center;
}

.hakeem-login-open.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body, 'Inter', Arial, sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1.5px solid var(--color-emerald, #0f6b4f);
    background: var(--color-emerald, #0f6b4f);
    color: var(--color-white, #ffffff);
    padding: 12px 24px;
    min-height: 44px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.hakeem-login-open.button:hover {
    background: var(--color-gold, #c9a24b);
    border-color: var(--color-gold, #c9a24b);
    color: var(--color-dark, #10201b);
}

.hakeem-login-open.button:focus-visible {
    outline: 3px solid var(--color-gold, #c9a24b);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .hakeem-login-open.button {
        width: 100%;
    }
}

.hakeem-login-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hakeem-login-modal[hidden] {
    display: none;
}

.hakeem-login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 24, 0.55);
    animation: hakeem-login-fade 0.18s ease-out;
}

.hakeem-login-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 26, 24, 0.28);
    padding: 28px 24px 26px;
    text-align: center;
    animation: hakeem-login-pop 0.18s ease-out;
}

.hakeem-login-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f1;
    color: #43504a;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hakeem-login-modal__close:hover {
    background: #e2e8e4;
}

.hakeem-login-modal__title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #152018;
}

.hakeem-login-modal__text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #5a6a5e;
}

.hakeem-login-modal__google {
    min-height: 44px;
    display: flex;
    justify-content: center;
}

.hakeem-login-modal__google iframe {
    max-width: 100%;
}

.hakeem-login-modal__status {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #00a32a;
}

.hakeem-login-modal__status--error {
    color: #b32d2e;
}

.hakeem-login-modal__hint {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #8a5a00;
    background: #fdf0dc;
    border: 1px solid #f0dfae;
    border-radius: 6px;
    padding: 8px 10px;
}

@keyframes hakeem-login-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hakeem-login-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .hakeem-login-modal__dialog {
        padding: 24px 18px 22px;
    }
}

/* RTL support */
html[dir="rtl"] .hakeem-login-modal__close {
    right: auto;
    left: 12px;
}
