/* AX Branding - Shared styles for AX Software plugins */
/* Mobile-first: base = mobile, media queries add desktop */

/* ========================================
   FRONTEND BADGE ("Powered by AX Software")
   ======================================== */

.ax-branding-badge {
    text-align: center;
    padding: 8px 0 4px;
    margin-top: 12px;
}

.ax-branding-badge a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #aaa;
    font-size: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
    transition: color 0.2s;
}

.ax-branding-badge a:hover {
    color: #14b8a6;
}

.ax-branding-badge svg {
    flex-shrink: 0;
}

.ax-branding-badge strong {
    font-weight: 600;
    color: inherit;
}

/* ========================================
   ADMIN BRANDING BOX
   ======================================== */

.ax-branding-admin {
    margin-top: 24px;
}

.ax-branding-admin-inner {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ax-branding-admin-logo {
    flex-shrink: 0;
}

.ax-branding-admin-logo svg {
    display: block;
}

.ax-branding-admin-body {
    flex: 1;
    min-width: 0;
}

.ax-branding-admin-version {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.ax-branding-admin-author {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
}

.ax-branding-admin-author a {
    color: #14b8a6;
    text-decoration: none;
}

.ax-branding-admin-author a:hover {
    text-decoration: underline;
}

.ax-branding-admin-cta {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.ax-branding-admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ax-branding-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    line-height: 1;
    white-space: nowrap;
}

.ax-branding-btn:hover {
    opacity: 0.85;
}

.ax-branding-btn-wa {
    background: #25D366;
    color: #fff;
}

.ax-branding-btn-wa:hover,
.ax-branding-btn-wa:focus {
    color: #fff;
}

.ax-branding-btn-web {
    background: #14b8a6;
    color: #fff;
}

.ax-branding-btn-web:hover,
.ax-branding-btn-web:focus {
    color: #fff;
}

.ax-branding-admin-contact {
    margin-top: 10px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.ax-branding-admin-contact a {
    color: #94a3b8;
    text-decoration: none;
}

.ax-branding-admin-contact a:hover {
    color: #14b8a6;
}

/* ========================================
   DESKTOP: sidebar position
   ======================================== */

@media (min-width: 783px) {
    .ax-branding-admin {
        position: fixed;
        top: 52px; /* 32px admin bar + 20px spacing */
        right: 20px;
        width: 260px;
        margin-top: 0;
        z-index: 100;
    }

    .ax-branding-admin-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    }

    .ax-branding-admin-actions {
        flex-direction: column;
        width: 100%;
    }

    .ax-branding-btn {
        justify-content: center;
        padding: 9px 14px;
    }
}
