@import url('fonts/fonts.css');

body {
    background-color: #0B0F17;
    color: #F8FAFC;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.10) 0%, transparent 35%),
        radial-gradient(circle at 50% 75%, rgba(37, 99, 235, 0.14) 0%, transparent 45%);
}

.kw-ochre {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: #FBBF24;
    letter-spacing: 0.01em;
    padding: 0 0.08em;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.kw-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, rgba(245, 158, 11, 0.1));
    border-radius: 4px;
}

.glow-card {
    background: rgba(19, 27, 46, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.16);
    box-shadow: 0 10px 40px -15px rgba(2, 6, 23, 0.8), 0 0 25px -5px rgba(37, 99, 235, 0.12);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 20px 45px -15px rgba(37, 99, 235, 0.35), 0 0 30px -5px rgba(245, 158, 11, 0.22);
}

.logo-ring {
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.65), 0 0 60px rgba(245, 158, 11, 0.25);
}

.lang-btn.active {
    background-color: #F59E0B;
    color: #0B0F17;
    font-weight: 800;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.animate-float {
    animation: floatSlow 5s ease-in-out infinite;
}

.tool-card-disabled {
    filter: grayscale(100%);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.gdpr-checkbox {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: #F59E0B;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.90);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.active {
    display: flex;
}

/* ==========================================================================
   IUBENDA-GRADE COOKIE BANNER & PREFERENCE CENTER STYLES
   ========================================================================== */
#iub-cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
    z-index: 9999;
    background: rgba(14, 21, 37, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 99, 235, 0.25);
    display: none;
}

#iub-cookie-banner.show {
    display: block;
    animation: slideUpBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBanner {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.iub-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.iub-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.iub-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #1E293B;
    border: 1px solid rgba(255,255,255,0.15);
    transition: .25s;
    border-radius: 999px;
}

.iub-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #94A3B8;
    transition: .25s;
    border-radius: 50%;
}

.iub-toggle input:checked + .iub-slider {
    background-color: rgba(245, 158, 11, 0.25);
    border-color: #F59E0B;
}

.iub-toggle input:checked + .iub-slider:before {
    transform: translateX(20px);
    background-color: #F59E0B;
}

.iub-toggle input:disabled + .iub-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

#iub-floating-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 90;
    background: rgba(19, 27, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#iub-floating-btn:hover {
    border-color: #F59E0B;
    color: #F8FAFC;
}

@media print {
    body { background: #fff !important; color: #000 !important; }
    header, footer, #vault-tools-grid, #iub-cookie-banner, #iub-floating-btn, #b2b-discount-banner, .no-print { display: none !important; }
    .modal-backdrop { position: static !important; background: #fff !important; display: block !important; }
    .glow-card { border: none !important; box-shadow: none !important; background: #fff !important; color: #000 !important; max-height: none !important; overflow: visible !important; }
}

.gdpr-checkbox:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Anteprima 16:9 nelle schede dei tool */
.tool-preview { aspect-ratio: 16 / 9; width: calc(100% + 0.5rem); overflow: hidden; border-radius: 0.9rem; border: 1px solid rgba(255,255,255,.08); background: #0B0F17; }
.tool-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.glow-card:hover .tool-preview img { transform: scale(1.04); }
.tool-card-disabled .tool-preview img { filter: grayscale(1); opacity: .55; }
@media print { .tool-preview { display: none !important; } }
