/*
Theme Name: Nexus Prime
Theme URI: https://example.com/nexus-prime
Author: Cursor Assistant
Author URI: https://example.com
Description: Tech & lifestyle magazine theme with dynamic API modules.
Version: 2.0.0
Text Domain: nexus-prime
*/

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'DM Sans', sans-serif;
    background-image:
        radial-gradient(circle at 15% 5%, rgba(0, 210, 211, 0.08), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(255, 106, 0, 0.06), transparent 35%),
        radial-gradient(circle at 50% 95%, rgba(132, 204, 22, 0.05), transparent 30%);
}

h1, h2, h3, h4, .font-display {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

header.fixed {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 210, 211, 0.1);
}

header.fixed::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d2d3, #ff6a00, #84cc16);
    pointer-events: none;
    z-index: 10;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card:hover {
    border-color: rgba(0, 210, 211, 0.25);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 48px rgba(0, 210, 211, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.img-wrapper {
    overflow: hidden;
    position: relative;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 55%);
    z-index: 10;
}

.hover-zoom img {
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.group:hover .hover-zoom img {
    transform: scale(1.08);
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00d2d3, #84cc16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff6a00, #00d2d3); }

.crypto-up { color: #16a34a; }
.crypto-down { color: #dc2626; }

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #00d2d3, #ff6a00, #84cc16, transparent) 1;
    padding-bottom: 1rem;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 1rem;
}

.category-pill {
    height: 28px;
    width: 5px;
    border-radius: 99px;
    margin-right: 1rem;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 48px;
    width: auto;
    height: auto;
}

.site-branding-footer .custom-logo {
    max-height: 56px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.article-content p { margin-bottom: 1.5rem; line-height: 1.85; font-size: 1.05rem; color: #334155; }
.article-content h2 { font-family: 'Sora', sans-serif; color: #0f172a; font-size: 1.75rem; font-weight: 800; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content blockquote { border-left: 4px solid; border-image: linear-gradient(to bottom, #00d2d3, #84cc16) 1; padding-left: 1.5rem; font-style: italic; color: #475569; margin: 2rem 0; font-size: 1.1rem; background: rgba(0, 210, 211, 0.04); padding: 1.25rem 1.5rem; border-radius: 0 16px 16px 0; }
.article-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: #334155; }
.article-content li { margin-bottom: 0.5rem; }
.article-content a,
.article-content p a,
.article-content li a,
.article-content blockquote a {
    color: #0891b2 !important;
    text-decoration: underline;
    text-decoration-color: rgba(0, 210, 211, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:visited,
.article-content p a:visited,
.article-content li a:visited,
.article-content blockquote a:visited {
    color: #7c3aed !important;
}

.article-content a:hover,
.article-content p a:hover,
.article-content li a:hover,
.article-content blockquote a:hover {
    color: #ff6a00 !important;
    text-decoration-color: rgba(255, 106, 0, 0.6);
}

.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.pagination .page-numbers {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #64748b;
    background: white;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pagination .page-numbers:hover {
    border-color: #00d2d3;
    color: #0f172a;
    background: rgba(0, 210, 211, 0.06);
    transform: translateY(-1px);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #00d2d3, #0891b2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 210, 211, 0.25);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    min-width: auto;
}

.pagination .page-numbers svg {
    width: 1.1rem;
    height: 1.1rem;
}

.quantum-box {
    position: relative;
    background: white;
    z-index: 0;
    overflow: hidden;
}

.quantum-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00d2d3, #ff6a00, #84cc16, #00d2d3);
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    z-index: -1;
    border-radius: 24px;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.quantum-box::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 20px;
    background-image: radial-gradient(circle, rgba(0, 210, 211, 0.06) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.4;
    pointer-events: none;
}

.mobile-menu {
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.is-open {
    display: block;
}

.search-panel {
    display: none;
}

.search-panel.is-open {
    display: block;
}

.footer-search-button {
    background: linear-gradient(135deg, #00d2d3, #0891b2);
    box-shadow: 0 4px 16px rgba(0, 210, 211, 0.2);
    color: white;
}

.footer-search-button:hover {
    background: linear-gradient(135deg, #ff6a00, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, #00d2d3, #ff6a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-border-gradient {
    border-image: linear-gradient(135deg, #00d2d3, #ff6a00, #84cc16) 1;
}

@media (max-width: 900px) {
    .main-nav-desktop {
        display: none;
    }

    header > .container {
        height: 4.5rem;
    }

    .mobile-menu a {
        display: block;
        width: 100%;
    }

    .mobile-menu .menu-item a {
        padding: 0.75rem 1rem;
        border-radius: 14px;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 6.75rem;
        padding-bottom: 4.5rem;
    }

    .glass-card {
        border-radius: 18px;
    }

    .category-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .category-header h3 {
        font-size: 1.35rem;
    }

    .category-header a {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    main {
        padding-top: 6.25rem;
        padding-bottom: 3.5rem;
    }

    .category-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .category-header h3 {
        font-size: 1.2rem;
    }

    .category-header a {
        margin-left: 0;
    }

    h1, h2, h3, h4 {
        overflow-wrap: anywhere;
    }

    .glass-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
