/* CodeByDT - Custom Tech Theme Styles */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Subtle Grid Background for Tech Vibe */
.bg-tech-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

.dark .bg-tech-grid {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Radial Glow Orbs with responsive sizing */
.glow-orb-cyan {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-indigo {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 640px) {
    .glow-orb-cyan, .glow-orb-indigo {
        width: 220px;
        height: 220px;
        filter: blur(40px);
    }
}

/* Tech Card Hover Effect */
.tech-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@media (min-width: 768px) {
    .tech-card:hover {
        transform: translateY(-4px);
    }
}

/* Glassmorphism Classes */
.glass-nav {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Hide scrollbar for clean touch swipe on mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar for desktop */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

/* Code Badge styling */
.tech-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Logo Dark mode text override */
.dark .dark-text-white {
    fill: #f8fafc;
}

/* Universal Code-block & Pre Overflow Reset for Blog Articles */
.prose pre,
.prose pre.ql-syntax,
.prose .ql-syntax,
pre.ql-syntax,
pre {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    background-color: #0F172A !important;
    color: #38BDF8 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.875rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
    box-sizing: border-box !important;
}

.dark .prose pre,
.dark .prose pre.ql-syntax,
.dark pre.ql-syntax {
    background-color: #030712 !important;
    border-color: #1F2937 !important;
    color: #38BDF8 !important;
}

