@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-primary: #00f3ff;
    /* Cyan Neon */
    --accent-secondary: #bc13fe;
    /* Purple Neon */
    --border-glass: rgba(255, 255, 255, 0.1);
    --glow-primary: 0 0 20px rgba(0, 243, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.3);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

/* Navigation & Search */
.nav-overlay {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

.search-box {
    position: relative;
    width: auto;
}

.search-box input {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    color: white;
    font-family: var(--font-main);
    width: 250px;
    transition: var(--transition);
}

.search-box input:focus {
    width: 300px;
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* Responsive Nav */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        /* Solid background for overlay */
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        transition: var(--transition);
        flex-direction: column;
    }

    .nav-overlay.active {
        right: 0;
    }

    .main-nav {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .nav-link {
        font-size: 1.5rem;
        color: white;
    }

    .search-box input {
        width: 80%;
        padding: 1rem;
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    h1 {
        font-size: 2.2rem;
    }
}



/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(29, 29, 31, 1) 0%, var(--bg-dark) 70%);
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 2rem auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
    color: #000;
    text-shadow: none;
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.card-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.tag:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Article Page */
.article-header {
    text-align: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, #000 0%, var(--bg-dark) 100%);
    position: relative;
}

.article-meta {
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.15rem;
    color: #ccc;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: white;
    display: block;
}

.article-content ul {
    margin: 1rem 0 2rem;
    padding-left: 1.5rem;
    list-style: none;
}

.article-content li {
    margin-bottom: 1rem;
    position: relative;
}

.article-content li::before {
    content: '>';
    color: var(--accent-secondary);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.faq-section {
    margin-top: 5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 3rem;
}

.faq-title {
    font-size: 2rem;
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-left: 4px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 243, 255, 0.05) 50%);
    pointer-events: none;
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question::before {
    content: 'Q:';
    color: var(--accent-primary);
    font-size: 0.9rem;
    opacity: 0.6;
}

.faq-answer {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Article Images & Extras */
.article-image-main {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-image-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-image-main:hover img {
    transform: scale(1.03);
}

.article-image-inline {
    margin: 2rem 0;
    text-align: center;
}

.article-image-inline img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.article-image-inline figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-style: italic;
}

.review-box {
    animation: fadeIn 1s ease;
}

.review-box h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}


/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        padding: 6rem 0;
    }
}

/* Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.neon-text {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Telegram CTA Button */
.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #24A1DE 0%, #1c82b3 100%);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.4);
    background: linear-gradient(135deg, #2db5f7 0%, #24A1DE 100%);
    color: white;
}

.btn-telegram svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cta-widget {
    background: rgba(36, 161, 222, 0.05);
    border: 1px solid rgba(36, 161, 222, 0.2);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.cta-title {
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cta-desc {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}