html {
    scroll-behavior: smooth;
}

/* Legacy Bootstrap-style visibility toggle still driven by page JS (preloader) */
.d-none { display: none !important; }

.spinner-border {
    width: 3rem; height: 3rem; border-width: .35em;
    border: .35em solid #00E5FF; border-right-color: transparent;
    border-radius: 50%; display: inline-block;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

body {
    font-family: "Rubik", sans-serif;
    background: #0D0B14;
    color: #C7C3DE;
    overflow-x: hidden;
    background-image:
        radial-gradient(50rem 26rem at 10% -10%, rgba(0,229,255,.12), transparent 60%),
        radial-gradient(46rem 24rem at 110% 10%, rgba(255,46,204,.10), transparent 60%);
    background-attachment: fixed;
}

section[id] {
    scroll-margin-top: 6.5rem;
}

h1, h2, h3, h4, .font-extrabold {
    font-family: "Orbitron", sans-serif;
    letter-spacing: -0.01em;
}

/* Faint cyberpunk grid backdrop for hero / feature sections */
.grid-mesh {
    background-image:
        linear-gradient(rgba(0,229,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,.08) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Scroll-in animation */
.animate-this {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-this.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Category select dropdown can get very tall with 300+ options */
select.category-select {
    max-height: 300px;
}

/* Angular clipped-corner card silhouette -- core cyberpunk visual motif */
.clip-corner {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.clip-corner-sm {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

/* Gradient neon border wrapper */
.neon-border {
    border: 1px solid transparent;
    background:
        linear-gradient(#150F26, #150F26) padding-box,
        linear-gradient(135deg, #00E5FF, #FF2ECC) border-box;
}

/* Gradient neon text */
.neon-text {
    background: linear-gradient(90deg, #00E5FF, #8B2FFF 55%, #FF2ECC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Homepage category pill tabs */
.category-tab {
    background: rgba(255,255,255,.05);
    color: rgba(199,195,222,.65);
    border: 1px solid rgba(0,229,255,.15);
    backdrop-filter: blur(12px);
}
.category-tab.active {
    background: linear-gradient(135deg, #00E5FF, #8B2FFF);
    color: #0D0B14;
    border-color: transparent;
    box-shadow: 0 0 25px -6px rgba(0,229,255,.7);
}

/* Featured / premium ribbon on directory thumbnails (hand-written cards) */
.premium-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 12px;
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF2ECC, #8B2FFF);
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.03rem;
    line-height: 1.8;
    color: rgba(199, 195, 222, .85);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    font-family: "Orbitron", sans-serif;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75em;
    margin-bottom: .6em;
}
.blog-content h1 { font-size: 1.8rem; }
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4, .blog-content h5, .blog-content h6 { font-size: 1.05rem; }
.blog-content p { margin-bottom: 1.1em; }
.blog-content ul, .blog-content ol { margin: 1em 0 1.2em 1.4em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: .4em; }
.blog-content a { color: #00E5FF; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #ffffff; }
.blog-content blockquote {
    border-left: 3px solid #FF2ECC;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(199, 195, 222, .65);
    font-style: italic;
}
.blog-content img { border-radius: .75rem; margin: 1em 0; max-width: 100%; }

/*
 * Compatibility shim -- apiClass.php's ajaxList() (used by the "Load More"
 * button on listing.php) renders fixed markup with these exact class names
 * (businesscard/img-fluid/fs-5/fw-bold/btn-prime/btn-sec/etc). Styled here to
 * match the hand-written directory cards elsewhere on the site without
 * touching the PHP/API layer.
 */
.businesscard {
    position: relative;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(0,229,255,.16);
    overflow: hidden;
    box-shadow: 0 20px 45px -22px rgba(0,0,0,.8);
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.businesscard:hover {
    border-color: rgba(0,229,255,.5);
    box-shadow: 0 0 35px -8px rgba(0,229,255,.4);
    transform: translateY(-2px);
}
.businesscard .img-fluid { width: 100%; height: 200px; object-fit: cover; display: block; }
.businesscard .fs-5 {
    font-size: 1.05rem;
    padding: 0 1.1rem;
    font-weight: 700;
    font-family: "Orbitron", sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.businesscard .fw-bold { font-weight: 700; }
.businesscard .mt-2 { margin-top: .75rem; display: block; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .pb-2 { padding-bottom: .5rem; }
.businesscard .text-black { color: rgba(199, 195, 222, .6); }
.businesscard .mb-3 { margin-bottom: .75rem; font-size: .88rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .btn-prime {
    background: linear-gradient(135deg, #00E5FF, #8B2FFF);
    color: #0D0B14;
    text-align: center;
    padding: .65rem 1rem;
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    display: block;
}
.businesscard .btn-sec {
    padding: 0 .8rem;
    background: rgba(0,229,255,.1);
    border: 1px solid rgba(0,229,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.businesscard .open {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 12px;
    background: linear-gradient(135deg, #FF2ECC, #8B2FFF);
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
}
