@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0F172A;
    color: #F8FAFC;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F172A;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(37,99,235,0.25);
}

.glass-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.glowing-btn {
    transition: all 0.3s ease;
}
.glowing-btn:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease forwards, slideOut 0.3s ease 2.7s forwards;
    opacity: 0;
    transform: translateX(100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
    to { opacity: 0; transform: translateX(100%); }
}

.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }
.toast.info { background: #2563EB; }

/* Ad Placeholders */
.ad-placeholder {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 14px;
    text-align: center;
    margin: 24px 0;
    min-height: 90px;
    border-radius: 8px;
    width: 100%;
}

.skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: rgba(255,255,255,0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Mobile Sticky Bottom Nav padding */
@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}
