/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --primary-dark: #00cc33;
    --secondary-color: #0d0d0d;
    --accent-color: #00d4ff;
    --text-color: #e0e0e0;
    --text-muted: #888;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --shadow-color: rgba(0, 255, 65, 0.3);
    --shadow-strong: rgba(0, 255, 65, 0.5);
    --gradient-1: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== MATRIX BACKGROUND ===== */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
}

.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(10, 10, 10, 0.85) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.98) 0%, 
        rgba(15, 15, 15, 0.95) 100%);
    box-shadow: 0 4px 30px var(--shadow-color),
                0 1px 0 rgba(0, 255, 65, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--shadow-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.15);
}

/* ===== SEARCH BOX ===== */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 25px;
    padding: 0.6rem 1rem;
    padding-right: 2.5rem;
    color: var(--text-color);
    width: 200px;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
    width: 250px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
}

.search-box button:hover {
    transform: scale(1.1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.05) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* ===== NEWS SLIDER ===== */
.news-slider-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.news-slider {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 255, 65, 0.1);
    transition: var(--transition-normal);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 30px var(--shadow-color);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-image-container {
    overflow: hidden;
    position: relative;
}

.news-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DOWNLOADS SECTION ===== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 255, 65, 0.1);
    transition: var(--transition-normal);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4),
                0 0 20px var(--shadow-color);
}

.download-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-info h3 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.download-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.download-versions {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.version-item:last-child {
    border-bottom: none;
}

.version-info {
    display: flex;
    flex-direction: column;
}

.version-number {
    color: var(--primary-color);
    font-weight: 600;
}

.version-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(0deg, 
        rgba(5, 5, 5, 1) 0%, 
        rgba(10, 10, 10, 0.95) 100%);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 30px var(--shadow-color),
                0 -1px 0 rgba(0, 255, 65, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== ARTICLE PAGE ===== */
.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.article-content h3 {
    margin: 1.5rem 0 0.8rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* ===== CODE BLOCKS ===== */
.article-content code {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.article-content pre code {
    background: none;
    padding: 0;
    display: block;
    line-height: 1.6;
}

.code-block {
    position: relative;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-bottom: none;
}

.code-block-language {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.code-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.code-copy-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary-color);
}

.code-block pre {
    margin-top: 0;
    border-radius: 0 0 12px 12px;
}

/* ===== VIDEO EMBED ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.contact-info {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(0, 255, 65, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
}

.contact-form-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== ALL NEWS PAGE ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 65, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-error {
    background: rgba(255, 65, 65, 0.1);
    border: 1px solid #ff4141;
    color: #ff4141;
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.8rem 1rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: var(--transition-normal);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .news-card {
        flex: 0 0 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== HEADER ACTIONS & SOCIAL ICONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}
.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    animation: pulse-icon 2s infinite;
}
.social-icon.youtube { color: #ff4141; }
.social-icon.facebook { color: #3b5998; }
.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===== HEADER LAYOUT TWEAKS ===== */
.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}
.header .nav { flex: 1; }
.header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.header .social-icons { display: flex; gap: 0.5rem; }

/* Comment avatars */
.comment-avatar, .comment-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 600;
}
.comment-item .comment-header, .comment-reply .comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.comment-meta { display: flex; flex-direction: column; }
.comment-replies { margin-left: 3rem; display: grid; gap: 0.75rem; }

/* Hide editor block actions on public pages */
.article-content .editor-block .block-actions {
    display: none !important;
}
/* Keep the title visible and nicely aligned */
.article-content .editor-block .block-header {
    justify-content: flex-start;
    gap: 0.5rem;
}

/* ===== COMMENT RANKING BADGES ===== */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
    animation: gold-glow 1.5s ease-in-out infinite;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a1a;
    animation: silver-glow 2s ease-in-out infinite;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #1a1a1a;
    animation: bronze-glow 2.5s ease-in-out infinite;
}

.rank-badge.admin {
    background: linear-gradient(135deg, #ff4141, #ff6b6b);
    color: white;
    animation: admin-glow 1s ease-in-out infinite;
}

@keyframes gold-glow {
    0%, 100% { box-shadow: 0 0 5px #ffd700, 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 15px #ffd700, 0 0 25px rgba(255, 215, 0, 0.8); }
}

@keyframes silver-glow {
    0%, 100% { box-shadow: 0 0 5px #c0c0c0, 0 0 10px rgba(192, 192, 192, 0.5); }
    50% { box-shadow: 0 0 12px #c0c0c0, 0 0 20px rgba(192, 192, 192, 0.7); }
}

@keyframes bronze-glow {
    0%, 100% { box-shadow: 0 0 5px #cd7f32, 0 0 10px rgba(205, 127, 50, 0.5); }
    50% { box-shadow: 0 0 10px #cd7f32, 0 0 18px rgba(205, 127, 50, 0.7); }
}

@keyframes admin-glow {
    0%, 100% { box-shadow: 0 0 5px #ff4141, 0 0 10px rgba(255, 65, 65, 0.5); }
    50% { box-shadow: 0 0 15px #ff4141, 0 0 25px rgba(255, 65, 65, 0.8); }
}

/* Star icon animation for rank badges */
.rank-badge i {
    animation: star-pulse 1s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== IMPROVED RESPONSIVE MOBILE MENU ===== */
@media (max-width: 968px) {
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 1.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        border-left: 1px solid rgba(0, 255, 65, 0.2);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .search-box {
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    /* Mobile social icons in nav */
    .nav .mobile-social-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 255, 65, 0.2);
    }
    
    .nav .mobile-social-icons {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .nav .mobile-social-icons .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .nav .mobile-user-section {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .nav .mobile-user-section .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
    }
}

/* Desktop - show header actions */
@media (min-width: 969px) {
    .mobile-social-section {
        display: none !important;
    }
}
