/* TopFinder.lk Global CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Sinhala:wght@400;500;600;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Tool Card Hover Effects */
.tool-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.15);
}
.dark .tool-card:hover {
    box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.25);
}

/* Ad Slot Container Styling */
.ad-slot-container {
    min-height: 90px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(241, 245, 249, 0.6),
        rgba(241, 245, 249, 0.6) 10px,
        rgba(248, 250, 252, 0.8) 10px,
        rgba(248, 250, 252, 0.8) 20px
    );
    border: 1px dashed rgba(203, 213, 225, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}
.dark .ad-slot-container {
    background: repeating-linear-gradient(
        -45deg,
        rgba(30, 41, 59, 0.4),
        rgba(30, 41, 59, 0.4) 10px,
        rgba(15, 23, 42, 0.6) 10px,
        rgba(15, 23, 42, 0.6) 20px
    );
    border-color: rgba(51, 65, 85, 0.8);
}

.ad-slot-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
}
.dark .ad-slot-badge {
    background: rgba(15, 23, 42, 0.8);
    color: #64748b;
}

/* Mobile App Bottom Navigation Bar */
@media (max-width: 1023px) {
    body {
        padding-bottom: 4.5rem;
    }
}

.bottom-nav-active {
    color: #4f46e5 !important;
    font-weight: 700 !important;
}

.dark .bottom-nav-active {
    color: #818cf8 !important;
}

/* Slide-up Tools Sheet Animations */
#mobileToolsSheet.sheet-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#mobileToolsSheet.sheet-open > div:last-child {
    transform: translateY(0) !important;
}

