/* ═══════════════════════════════════════════════════════
   AnimixWorld Cookie Consent Pro — banner.css v2.0.0
   Clean, accessible, mobile-first
═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --amxw-accent:   #2563eb;
    --amxw-text:     #f9fafb;
    --amxw-text-dim: rgba(249,250,251,0.75);
    --amxw-border:   rgba(255,255,255,0.12);
    --amxw-radius:   14px;
    --amxw-shadow:   0 25px 60px rgba(0,0,0,0.45);
    --amxw-trans:    0.25s ease;
}

/* ── Banner wrapper ── */
.amxw-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 18px 24px;
    box-shadow: var(--amxw-shadow);
    border-top: 1px solid var(--amxw-border);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--amxw-text);
    transition: transform var(--amxw-trans), opacity var(--amxw-trans);
}

.amxw-pos-bottom {
    bottom: 0;
    border-top: 1px solid var(--amxw-border);
    border-bottom: none;
    border-radius: var(--amxw-radius) var(--amxw-radius) 0 0;
}
.amxw-pos-top {
    top: 0;
    border-bottom: 1px solid var(--amxw-border);
    border-top: none;
    border-radius: 0 0 var(--amxw-radius) var(--amxw-radius);
}

.amxw-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.amxw-icon-col {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.amxw-text-col {
    flex: 1;
    min-width: 220px;
}

.amxw-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--amxw-text);
}

.amxw-desc {
    margin: 0;
    font-size: 13px;
    color: var(--amxw-text-dim);
    line-height: 1.6;
}

.amxw-priv-link {
    color: rgba(147,197,253,1);
    text-decoration: none;
    margin-left: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.amxw-priv-link:hover { text-decoration: underline; color: #fff; }

/* ── Buttons ── */
.amxw-btn-col {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.amxw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--amxw-trans);
    font-family: inherit;
    line-height: 1;
}

.amxw-btn-primary {
    background: var(--amxw-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.amxw-btn-primary:hover  { filter: brightness(1.15); transform: translateY(-1px); }
.amxw-btn-primary:active { transform: translateY(0); filter: brightness(0.95); }
.amxw-btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.amxw-btn-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--amxw-text);
    border: 1px solid var(--amxw-border);
}
.amxw-btn-secondary:hover  { background: rgba(255,255,255,0.2); }
.amxw-btn-secondary:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

.amxw-btn-ghost {
    background: transparent;
    color: var(--amxw-text-dim);
    border: 1px solid var(--amxw-border);
    font-size: 12px;
}
.amxw-btn-ghost:hover  { background: rgba(255,255,255,0.1); color: var(--amxw-text); }
.amxw-btn-ghost:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }

/* Dismiss hint (top-right X) */
.amxw-close-hint {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #ff6600;  /* ← Band karo button orange color */
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
}
.amxw-close-hint:hover { color: #ff8c00; background: rgba(255,102,0,0.15); }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
#amxw-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.amxw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);  /* ← Darker black overlay */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.amxw-modal-box {
    position: relative;
    background: #000000;  /* ← Full black popup background */
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: amxw-slide-up 0.25s ease;
}

@keyframes amxw-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.amxw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
}
.amxw-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
}
.amxw-modal-close {
    background: none;
    border: none;
    color: #ff6600;  /* ← Modal band karo button orange */
    font-size: 22px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s;
}
.amxw-modal-close:hover { color: #ff8c00; background: rgba(255,102,0,0.15); }

.amxw-modal-body {
    padding: 20px 24px;
}
.amxw-modal-intro {
    margin: 0 0 20px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Preference rows */
.amxw-pref-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.amxw-pref-row:last-child { border-bottom: none; }

.amxw-pref-info {
    flex: 1;
    min-width: 0;
}
.amxw-pref-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}
.amxw-pref-info span {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Toggle switch */
.amxw-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.amxw-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.amxw-slider {
    position: absolute;
    inset: 0;
    background: #374151;
    border-radius: 13px;
    transition: 0.3s;
    cursor: pointer;
}
.amxw-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.amxw-toggle input:checked + .amxw-slider { background: #ff6600; }
.amxw-toggle input:checked + .amxw-slider::before { transform: translateX(22px); }
.amxw-toggle-locked .amxw-slider { background: #1e3a5f; cursor: not-allowed; opacity: 0.6; }
.amxw-toggle input:focus-visible + .amxw-slider { outline: 2px solid #60a5fa; outline-offset: 2px; }

.amxw-modal-footer {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ══════════════════════════════════════════
   REVOKE LINK  (shortcode)
══════════════════════════════════════════ */
.amxw-revoke-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.amxw-revoke-link:hover { opacity: 1; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Banner */
    .amxw-banner { padding: 14px 16px 16px; }
    .amxw-inner  { gap: 12px; }
    .amxw-icon-col { display: none; }
    .amxw-btn-col { width: 100%; }
    .amxw-btn { flex: 1; justify-content: center; font-size: 12px; padding: 10px 12px; }
    .amxw-close-hint { top: 8px; right: 10px; }

    /* Modal — centered, compact */
    #amxw-modal { padding: 12px; }
    .amxw-modal-box {
        max-width: 92%;
        width: 92%;
        max-height: 90vh;
        border-radius: 16px;
    }
    .amxw-modal-header { padding: 16px 16px 12px; }
    .amxw-modal-header h2 { font-size: 16px; }
    .amxw-modal-body { padding: 12px 16px 8px; }
    .amxw-modal-intro { font-size: 12px; margin-bottom: 12px; }
    .amxw-modal-footer {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
    }
    .amxw-modal-footer .amxw-btn { width: 100%; justify-content: center; }

    /* Preference rows */
    .amxw-pref-row { gap: 12px; padding: 12px 0; }
    .amxw-pref-info strong { font-size: 13px; }
    .amxw-pref-info span   { font-size: 11px; }
}

/* ── Very small phones (≤ 400px) ── */
@media (max-width: 400px) {
    /* Banner text */
    .amxw-title { font-size: 14px; }
    .amxw-desc  { font-size: 12px; }

    /* Modal tighter padding */
    .amxw-modal-header { padding: 14px 12px 10px; }
    .amxw-modal-header h2 { font-size: 15px; }
    .amxw-modal-body { padding: 10px 12px 6px; }
    .amxw-modal-intro { font-size: 11px; }
    .amxw-modal-footer { padding: 10px 12px; }

    /* Preference rows — prevent toggle overflow */
    .amxw-pref-row { gap: 10px; padding: 10px 0; }
    .amxw-pref-info strong { font-size: 12px; }
    .amxw-pref-info span   { font-size: 11px; }

    /* Slightly smaller toggle so it never clips */
    .amxw-toggle { width: 42px; height: 24px; }
    .amxw-slider { border-radius: 12px; }
    .amxw-slider::before { width: 18px; height: 18px; left: 3px; top: 3px; }
    .amxw-toggle input:checked + .amxw-slider::before { transform: translateX(18px); }
}

/* ── Tiny phones (≤ 360px, e.g. iPhone SE 1st gen, Galaxy A03) ── */
@media (max-width: 360px) {
    .amxw-modal-box { max-height: 96vh; }
    .amxw-modal-header { padding: 12px 10px 8px; }
    .amxw-modal-header h2 { font-size: 14px; }
    .amxw-modal-close { font-size: 18px; }
    .amxw-modal-body { padding: 8px 10px 4px; }
    .amxw-modal-intro { font-size: 11px; margin-bottom: 8px; }
    .amxw-pref-row { gap: 8px; padding: 8px 0; }
    .amxw-pref-info strong { font-size: 12px; margin-bottom: 2px; }
    .amxw-pref-info span   { font-size: 10px; line-height: 1.4; }
    .amxw-modal-footer { padding: 8px 10px; gap: 6px; }
    .amxw-btn { font-size: 12px; padding: 9px 10px; }
    .amxw-modal-body { overflow-y: auto; }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .amxw-banner, .amxw-btn, .amxw-modal-box { transition: none; animation: none; }
}
