/**
 * Property KE Dynamic Auth Button Styles
 */

.propertyke-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0042db 0%, #002ba1 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 66, 219, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto !important;
    float: right;
}

.propertyke-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 66, 219, 0.4);
    background: linear-gradient(135deg, #0051ff 0%, #0036cc 100%);
}

.propertyke-auth-btn i {
    font-size: 16px;
}

/* Logged In State (Avatar & Info) */
.propertyke-user-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align contents to the right */
    gap: 12px;
    padding: 6px 6px 6px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-left: auto !important;
    /* Force pull to right in flex/grid */
    float: right;
    /* Fallback for older layouts */
    width: fit-content;
    max-width: 100%;
}

.propertyke-user-nav:hover {
    background: rgba(0, 0, 0, 0.08);
    /* Slightly more prominent on hover */
    border-color: rgba(0, 0, 0, 0.15);
}

.propertyke-user-avatar {
    width: 44px;
    /* Slightly larger */
    height: 44px;
    border-radius: 50% !important;
    /* Force perfect circle */
    object-fit: cover;
    border: 2px solid #fff;
    /* White border for contrast */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* More prominent shadow */
}

.propertyke-user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    /* Align text to the right */
    overflow: hidden;
}

.propertyke-user-name {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    /* Single line */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Context adjustments */
.elementor-widget-shortcode .propertyke-auth-btn,
.elementor-widget-shortcode .propertyke-user-nav {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .propertyke-auth-btn span {
        display: none;
    }

    .propertyke-auth-btn {
        padding: 10px;
        border-radius: 50%;
    }

    .propertyke-user-info {
        display: none;
    }

    .propertyke-user-nav {
        padding: 4px;
    }
}