/*
Theme Name: Videoloops Base
Theme URI: https://videoloops.net
Author: Videoloops
Description: Dark VJ-themed Bootstrap 5 WordPress theme for Videoloops.net
Version: 2.3.0
License: GPLv2 or later
Text Domain: videoloops-base
*/

:root {
    --vl-dark: #0f1320;
    --vl-darker: #080b14;
    --vl-card-bg: #1a2332;
    --vl-border: #2e3a4e;
    --vl-accent: #8b5cf6;
    --vl-accent2: #38bdf8;
    --vl-neon: #22d65e;
    --vl-pink: #e11d60;
    --vl-amber: #f59e0b;
    --vl-text: #f0f4fa;
    --vl-text-muted: #c8d4e4;
}

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--vl-dark);
    color: var(--vl-text);
    overflow-x: hidden;
}

a { color: var(--vl-accent2); transition: color .15s ease; }
a:hover { color: #7dd3fc; }

::selection { background: var(--vl-accent); color: #fff; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.025em; line-height: 1.2; }

img { max-width: 100%; height: auto; }
.container { max-width: 1140px; }

/* ── Navbar ── */
.navbar {
    border-bottom: 1px solid var(--vl-border);
    min-height: 60px;
    background: rgba(10,14,20,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img, .custom-logo {
    max-height: 24px !important;
    width: auto !important;
}
.navbar-brand { padding: 0; }
.navbar .nav-link {
    color: var(--vl-text-muted) !important;
    font-size: .85rem;
    font-weight: 500;
    padding: .4rem .8rem !important;
    border-radius: 6px;
    letter-spacing: .01em;
    transition: all .15s ease;
}
.navbar .nav-link:hover {
    color: var(--vl-text) !important;
    background: rgba(255,255,255,.04);
}
.navbar .nav-item.active .nav-link {
    color: var(--vl-text) !important;
    font-weight: 600;
    background: rgba(124,58,234,.12);
}
.navbar .dropdown-menu {
    background: var(--vl-card-bg);
    border: 1px solid var(--vl-border);
    border-radius: 10px;
    margin-top: 4px;
    padding: .4rem;
}
.navbar .dropdown-item {
    color: var(--vl-text-muted);
    padding: .45rem .85rem;
    font-size: .85rem;
    border-radius: 6px;
}
.navbar .dropdown-item:hover {
    background: rgba(255,255,255,.06);
    color: var(--vl-text);
}

/* ── Page Header ── */
.page-header {
    padding: 3rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 300px at 50% 100%, rgba(124,58,234,.08) 0%, transparent 60%),
        radial-gradient(ellipse 400px 200px at 30% 50%, rgba(56,189,248,.05) 0%, transparent 50%);
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: .5rem;
}
.page-header p {
    color: var(--vl-text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ── Hero ── */
@keyframes hero-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-section {
    background: linear-gradient(135deg, #0a0e14 0%, #16082e 30%, #0a0e14 50%, #081425 70%, #0a0e14 100%);
    background-size: 400% 400%;
    animation: hero-shimmer 18s ease infinite;
    border-bottom: 1px solid var(--vl-border);
    padding: 5rem 0 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 700px 400px at 20% 60%, rgba(124,58,234,.1) 0%, transparent 60%),
        radial-gradient(ellipse 600px 350px at 80% 40%, rgba(56,189,248,.07) 0%, transparent 60%),
        radial-gradient(ellipse 300px 200px at 50% 80%, rgba(34,214,94,.04) 0%, transparent 60%);
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: .25rem 1rem;
    border: 1px solid rgba(124,58,234,.25);
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--vl-accent2);
    margin-bottom: 1.25rem;
    background: rgba(56,189,248,.05);
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #7c3aed, #38bdf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-shimmer 8s ease infinite;
    margin-bottom: 0;
    line-height: 1.12;
}
.hero-section .lead {
    color: #a0aec0;
    max-width: 560px;
    margin: 1.1rem auto;
    font-size: 1.05rem;
    line-height: 1.65;
}
.hero-section .btn {
    padding: .65rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    font-size: .9rem;
}

/* ── Features ── */
.features-section {
    border-bottom: 1px solid var(--vl-border);
}
.feature-card {
    background: var(--vl-card-bg);
    border: 1px solid var(--vl-border);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    transition: all .3s ease;
    height: 100%;
}
.feature-card:hover {
    border-color: rgba(124,58,234,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124,58,234,.15), rgba(56,189,248,.1));
    border: 1px solid rgba(124,58,234,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--vl-accent2);
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .65rem;
}
.feature-card p {
    color: var(--vl-text-muted);
    font-size: .875rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, var(--vl-accent), #9333ea);
    border: none;
    padding: .55rem 1.7rem;
    font-weight: 600;
    transition: all .25s ease;
    border-radius: 10px;
    font-size: .9rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #9333ea, var(--vl-accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,234,.3);
}
.btn-outline-primary {
    color: var(--vl-accent2);
    border-color: var(--vl-accent2);
    border-radius: 10px;
    font-size: .9rem;
}
.btn-outline-primary:hover {
    background: var(--vl-accent2);
    color: var(--vl-dark);
    border-color: var(--vl-accent2);
    transform: translateY(-2px);
}
.btn-sm {
    border-radius: 8px;
    font-size: .8rem;
    padding: .35rem 1rem;
}

/* ── Cards ── */
.card {
    background: var(--vl-card-bg);
    border: 1px solid var(--vl-border);
    border-radius: 14px;
    transition: all .3s ease;
    overflow: hidden;
}
.card:hover {
    border-color: rgba(124,58,234,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.card-title { font-weight: 700; font-size: 1.05rem; }
.card-title a { color: var(--vl-text); transition: color .15s ease; }
.card-title a:hover { color: var(--vl-accent2); }
.card-img-top { border-radius: 14px 14px 0 0; }
.card .card-body { padding: 1.2rem; }
.card-text { color: var(--vl-text-muted); font-size: .875rem; line-height: 1.55; }

.no-thumb-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(56,189,248,.2);
    position: relative;
    overflow: hidden;
}
.no-thumb-placeholder .category-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(56,189,248,.5);
    margin-top: .5rem;
}

/* Card category badge */
.card-cat {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
}
.card-cat .badge {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .25rem .7rem;
    border-radius: 6px;
    text-transform: uppercase;
    background: rgba(10,14,20,.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--vl-text-muted);
}

/* Post card meta row */
.post-meta-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--vl-text-muted);
    font-size: .8rem;
}

/* ── Blog sidebar ── */
.blog-sidebar .card {
    border-radius: 12px;
}
.blog-sidebar .card-title {
    font-size: .95rem;
    font-weight: 700;
}
.blog-sidebar a {
    color: var(--vl-text-muted);
}
.blog-sidebar a:hover {
    color: var(--vl-accent2);
}

/* ── Article / Single ── */
article h1, article h2, article h3 { line-height: 1.2; }
article h1 { font-size: 2.2rem; font-weight: 800; }
article h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; }
article h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; }
article img, article iframe, article video { max-width: 100%; border-radius: 10px; }
article p { line-height: 1.75; margin-bottom: 1.2rem; color: #c8d0dc; }
article blockquote {
    border-left: 4px solid var(--vl-accent);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: var(--vl-text-muted);
    font-style: italic;
}
article blockquote p { margin-bottom: .5rem; color: var(--vl-text-muted); }
article ul, article ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
article li { margin-bottom: .3rem; }
article .post-meta { color: var(--vl-text-muted); font-size: .85rem; }

/* ── Tags ── */
.post-tags .badge {
    background: var(--vl-card-bg);
    border: 1px solid var(--vl-border);
    color: var(--vl-text-muted);
    font-weight: 500;
    padding: .3rem .65rem;
    border-radius: 8px;
    transition: all .15s ease;
}
.post-tags .badge:hover { border-color: var(--vl-accent); color: var(--vl-text); }

/* ── WP Blocks ── */
.wp-block-button .wp-block-button__link { text-decoration: none; border-radius: 10px; }
.wp-block-code { background: var(--vl-darker); border: 1px solid var(--vl-border); border-radius: 8px; padding: 1rem; color: var(--vl-text); }
.wp-block-preformatted { background: var(--vl-darker); border: 1px solid var(--vl-border); border-radius: 8px; padding: 1rem; }
.wp-block-table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--vl-border); padding: .6rem; }
.wp-block-table thead { background: var(--vl-card-bg); }
.wp-block-separator { border-color: var(--vl-border); margin: 2rem 0; }
.wp-block-quote { border-left: 4px solid var(--vl-accent); padding-left: 1.2rem; color: var(--vl-text-muted); }

.tag-cloud-link {
    background: var(--vl-card-bg);
    border: 1px solid var(--vl-border);
    padding: .25rem .7rem;
    border-radius: 8px;
    color: var(--vl-text-muted);
    text-decoration: none;
    font-size: .82rem;
    display: inline-block;
    margin: 0 .25rem .25rem 0;
    transition: all .15s ease;
}
.tag-cloud-link:hover { border-color: var(--vl-accent); color: var(--vl-text); }

.badge { font-weight: 500; }
.wp-block-latest-posts__list a { color: var(--vl-text); text-decoration: none; font-weight: 600; }
.wp-block-latest-posts__list a:hover { color: var(--vl-accent2); }

/* ── Widgets ── */
.widget-area .card { border-radius: 12px; }
.widget-area a { color: var(--vl-text-muted); text-decoration: none; }
.widget-area a:hover { color: var(--vl-accent2); }

/* ── Forms ── */
form input[type="text"], form input[type="email"], form input[type="search"],
form input[type="url"], form textarea, form select {
    background: var(--vl-darker);
    border: 1px solid var(--vl-border);
    color: var(--vl-text);
    border-radius: 10px;
    padding: .5rem .75rem;
    width: 100%;
    transition: border-color .15s ease;
    font-size: .9rem;
}
form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: var(--vl-accent);
    box-shadow: 0 0 0 3px rgba(124,58,234,.15);
}
form input[type="submit"] {
    background: linear-gradient(135deg, var(--vl-accent), #9333ea);
    border: none;
    color: #fff;
    padding: .5rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
form input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,234,.3); }

/* ── Pagination ── */
.pagination { margin-top: 2.5rem; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border: 1px solid var(--vl-border);
    border-radius: 8px;
    color: var(--vl-text-muted);
    text-decoration: none;
    margin: 0 .15rem;
    font-size: .85rem;
    transition: all .15s ease;
}
.pagination a:hover { border-color: var(--vl-accent); color: var(--vl-text); background: var(--vl-card-bg); }
.pagination .current { background: var(--vl-accent); border-color: var(--vl-accent); color: #fff; }

/* ── Footer ── */
footer { border-top: 1px solid var(--vl-border); }
footer a { color: var(--vl-accent2); text-decoration: none; }
footer a:hover { color: #7dd3fc; text-decoration: underline; }
footer .social-icons a {
    font-size: 1.25rem;
    margin-right: .65rem;
    color: var(--vl-text-muted);
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--vl-card-bg);
    border: 1px solid var(--vl-border);
}
footer .social-icons a:hover { color: var(--vl-text); border-color: var(--vl-accent); background: rgba(124,58,234,.1); transform: translateY(-2px); }
footer .list-unstyled li { margin-bottom: .35rem; }
footer .list-unstyled a { color: var(--vl-text-muted); font-size: .875rem; }
footer .list-unstyled a:hover { color: var(--vl-accent2); }
footer hr { opacity: .25; }

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--vl-accent);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: all .3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: .8; }
.back-to-top:hover { opacity: 1; transform: translateY(-2px); }

/* ── Utilities ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--vl-accent);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 100;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--vl-border);
    color: var(--vl-text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.card {
    animation: fadeIn .4s ease both;
}
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5) { animation-delay: .2s; }
.card:nth-child(6) { animation-delay: .25s; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .navbar .navbar-nav { padding-top: .4rem; }
    .navbar .nav-item { padding: .15rem 0; }
}
@media (max-width: 768px) {
    .hero-section { padding: 3rem 0 2.5rem; }
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section .lead { font-size: .95rem; }
    .page-header { padding: 2rem 0 1.5rem; }
    .feature-card { padding: 1.5rem; }
    article h1 { font-size: 1.5rem; }
    .card .card-body { padding: 1rem; }
    .no-thumb-placeholder { height: 140px; }
}
