/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #6B2FBF;
    --deep-purple: #4A1D7F;
    --light-purple: #8B4FDF;
    --neon-green: #39FF14;
    --bright-green: #2DCC70;
    --dark-bg: #1A0E2E;
    --card-bg: #2D1B4E;
    --text-white: #FFFFFF;
    --text-gray: #B8B8D1;
    --border-color: #4A2F6F;
    --header-height: 70px;
    --sidebar-width: 200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2A1A4A 50%, var(--deep-purple) 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===========================
   Header Styles
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--primary-purple);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(107, 47, 191, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.burger-menu {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.burger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo {
    height: 50px;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-gray);
    font-size: 1rem;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--text-white);
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--light-purple);
}

.header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--neon-green);
    transform: translateY(-2px);
}

/* ===========================
   Sidebar Styles
   =========================== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--card-bg);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
}

.nav-item:hover {
    background: rgba(107, 47, 191, 0.3);
    border-left-color: var(--neon-green);
}

/* ===========================
   Main Content Styles
   =========================== */
.main-content {
    margin-top: var(--header-height);
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Banner Section */
.banner-section {
    margin-bottom: 2rem;
}

.banner-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(107, 47, 191, 0.4);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bonus Button */
.bonus-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.bonus-btn {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--bright-green) 100%);
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(57, 255, 20, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.bonus-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(57, 255, 20, 0.6);
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.category-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-item:hover {
    background: var(--primary-purple);
    border-color: var(--neon-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 47, 191, 0.5);
}

.category-name {
    display: block;
}

/* Article Content */
.article-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.article-content h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h2 {
    color: var(--neon-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Table Styles */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-bg);
    min-width: 600px;
}

.data-table thead {
    background: var(--primary-purple);
}

.data-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--neon-green);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.95rem;
}

.data-table tbody tr {
    transition: background 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(107, 47, 191, 0.2);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* List Styles */
.styled-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.styled-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.styled-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-size: 0.8rem;
}

.styled-list li strong {
    color: var(--text-white);
    font-weight: 700;
}

/* ===========================
   Footer Styles
   =========================== */
.footer {
    background: var(--card-bg);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-purple);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--neon-green);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--neon-green);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .search-input {
        width: 200px;
    }
    
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .search-container {
        display: none;
    }
    
    .header-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .banner-placeholder {
        height: 250px;
    }
    
    .bonus-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-item {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content h1 {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content p,
    .styled-list li {
        font-size: 0.95rem;
    }
    
    .table-wrapper {
        margin: 1.5rem -1.5rem;
        border-radius: 0;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .banner-placeholder {
        height: 200px;
    }
    
    .bonus-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Scrollbar Styles
   =========================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-purple);
}