/* === MODERN DARK MODE STYLE === */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #00ff9d;
    --accent-dim: #00ff9d33;
    --border: #222222;
    --glass: rgba(17, 17, 17, 0.8);
}
ul{
    list-style: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor - Hidden as requested */
.cursor {
    display: none;
}

.cursor-follower {
    display: none;
}

/* === LAYOUT === */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    position: relative;
}

/* === SIDEBAR NAV === */
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 40px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
}

.brand {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 60px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--accent);
    transition: height 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.nav-item:hover::before, .nav-item.active::before {
    height: 100%;
}

.sidebar-footer {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* === MAIN CONTENT === */
.main-content {
    padding: 40px ;
    position: relative;
}

/* === PAGE TRANSITIONS === */
.page {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HOME PAGE - INNOVATIVE LAYOUT === */
.home-header {
    margin-bottom: 20px;
    position: relative;
}

.home-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.home-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
}

/* Masonry Grid with Asymmetric Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
}

/* Featured Article - Spans 8 columns */
.article-card.featured {
    grid-column: span 8;
    grid-row: span 2;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    cursor: pointer;
}

.article-card.featured:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.1);
}

.article-card.featured .image {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.article-card.featured .image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 157, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card.featured:hover .image::after {
    opacity: 1;
}

.article-card.featured .content {
    padding: 32px;
}

.article-card.featured .category {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.article-card.featured h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.article-card.featured p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-card.featured .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* Standard Cards - Spans 4 columns */
.article-card {
    grid-column: span 4;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.article-card .image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}

.article-card .content {
    padding: 20px;
}

.article-card .category {
    color: var(--accent);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.article-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured p,.large p {
    -webkit-line-clamp: 4;
}
.article-card .meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

/* Large Sidebar Card - Spans 4 columns, 2 rows */
.article-card.large {
    grid-column: span 4;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.article-card.large .image {
    height: 200px;
}

.article-card.large h3 {
    font-size: 22px;
}

/* === CATEGORY PAGE === */
.category-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.category-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 8px;
    text-transform: uppercase !important;
}

.category-count {
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}

.category-card .image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
}



.category-card:hover .image::before {
    opacity: 1;
}

.category-card .content {
    padding: 24px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 20px;
}

/* === DETAIL PAGE === */
.detail-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.detail-category {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.detail-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.detail-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    border-radius: 16px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.detail-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 157, 0.1));
}

.detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

.detail-content p {
    margin-bottom: 24px;
}

.detail-content h3 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    margin: 40px 0 20px;
    letter-spacing: -1px;
}

.detail-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 20px;
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

/* === LEGAL PAGES === */
.legal-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.legal-title {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.legal-content {
    max-width: 800px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    margin: 40px 0 16px;
    letter-spacing: -1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
    position: relative;
    padding-left: 24px;
}

.legal-content h3::before {
    content: '#';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul {
    margin: 16px 0 16px 24px;
    list-style: none;
}

.legal-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.legal-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.legal-content b {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-content .mm {
    color: var(--accent);
    font-weight: 600;
}

.last-updated {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 14px;
}

.table-of-contents {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.table-of-contents h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.table-of-contents ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    padding: 6px 0;
    padding-left: 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--accent);
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.title {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.title:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* === FOOTER === */
.footer {
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
.category-title {
    font-size: 1.5rem;

}
    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 80px;
        flex-direction: row;
        align-items: center;
        padding: 0 10px;
        border-right: none;
        border-top: 1px solid var(--border);
        z-index: 1000;
    }

    .brand {
        display: none; /* Hide brand on mobile since we want to focus on navigation */
    }

    .nav-menu {
        flex-direction: row;
        gap: 2px; /* Reduced gap to fit all items better */
        flex: 1;
        justify-content: space-around; /* Distribute items evenly */
        max-width: 100%;
    }

    .nav-item {
        padding: 12px 8px; /* Increased vertical padding for easier tapping */
        font-size: 12px; /* Slightly smaller text to fit better */
        text-align: center;
        min-width: 40px; /* Ensure minimum touch target size */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-item i, .nav-item svg {
        display: block; /* If you have icons, show them */
        margin-bottom: 4px;
        font-size: 16px;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 40px 20px 100px 20px; /* Added bottom padding to account for fixed navbar */
    }

    .home-title {
        font-size: 48px;
    }

    .masonry-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .article-card.featured,
    .article-card.large {
        grid-column: span 6;
    }

    .article-card:not(.featured):not(.large) {
        grid-column: span 3;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-title {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: 90px; /* Slightly taller for better touch targets */
        padding: 5px 5px;
    }

    .nav-menu {
        gap: 1px;
    }

    .nav-item {
        padding: 15px 5px; /* More padding for easier tapping on very small screens */
        font-size: 11px; /* Even smaller text on smallest screens */
        min-width: 35px;
    }

    .main-content {
        padding: 40px 15px 110px 15px; /* Adjusted for smallest screens */
    }

    .home-title {
        font-size: 36px;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .article-card.featured,
    .article-card.large {
        grid-column: span 2;
    }

    .article-card:not(.featured):not(.large) {
        grid-column: span 2;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-content {
        font-size: 16px;
    }

    .legal-title {
        font-size: 36px;
    }

    .legal-content {
        font-size: 15px;
    }

    .legal-content h3 {
        font-size: 20px;
    }

    .table-of-contents {
        padding: 20px;
    }

    .footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .legal-title {
        font-size: 32px;
    }

    .legal-content {
        font-size: 14px;
    }

    .legal-content h3 {
        font-size: 18px;
        padding-left: 20px;
    }

    .table-of-contents {
        padding: 16px;
    }

    .table-of-contents h3 {
        font-size: 18px;
    }

    .table-of-contents a {
        padding: 6px 10px;
    }
}

/* === UTILITY CLASSES === */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bg-secondary);
    z-index: 99999;
}

.loading-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 157, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.input-group {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    outline: none;
    font-size: 14px;
}

.input-group button {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.input-group button:hover {
    opacity: 0.8;
}

/* === MOBILE TOP NAVIGATION === */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0 20px;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.mobile-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.mobile-nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--accent);
    transition: height 0.3s ease;
}

.mobile-nav-item:hover::before, .mobile-nav-item.active::before {
    height: 100%;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
    .mobile-nav {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 80px 20px 40px 20px;
    }
}

@media (max-width: 640px) {
    .mobile-nav {
        padding: 0 15px;
    }
    
    .mobile-brand {
        font-size: 20px;
    }
    
    .mobile-nav-item {
        font-size: 16px;
        padding: 10px 12px;
    }
}
