@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #f1f5f9;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --font-sans: 'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
    --max-width: 1440px;
    --header-height: 64px;
    --sidebar-width: 240px;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* Hero Section with Background Image and Blur */
.hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.7) 60%, 
        rgba(248,250,252,1) 100%);
}

/* Logo Styles - 40% smaller */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Mobile Search Toggle */
.search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.search-toggle .material-symbols-outlined {
    font-size: 24px;
}

/* Mobile Search Panel */
.search-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.search-panel.active {
    display: block;
}

.search-panel form {
    display: flex;
    gap: 8px;
}

.search-panel input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
}

.search-panel button {
    padding: 12px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

body {
    font: 14px/1.7 var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg-alt);
    /* Desktop margins - prevents full width stretch */
    padding: 0 48px;
}

@media (max-width: 1400px) {
    body { padding: 0 32px; }
}

@media (max-width: 1024px) {
    body { padding: 0 20px; }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 24px;
}

/* Mobile Navigation Panel */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.mobile-nav-close .material-symbols-outlined {
    font-size: 24px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.mobile-nav-links a .material-symbols-outlined {
    font-size: 22px;
    color: var(--color-text-light);
}

.mobile-nav-links a:hover .material-symbols-outlined,
.mobile-nav-links a.active .material-symbols-outlined {
    color: var(--color-primary);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-nav.active + .mobile-overlay,
.mobile-overlay.active {
    display: block;
}

a { color: var(--color-primary); text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Page wrapper for max width */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav {
    display: flex;
    gap: 32px;
    flex: 1;
}

.main-nav a {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.search {
    position: relative;
}

.search input {
    width: 240px;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-bg-alt);
    transition: all 0.2s;
}

.search input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    width: 280px;
}

/* Body Layout */
.site-body {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: 40px;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.nav-panel,
.panel {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.nav-panel h3,
.panel h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.nav-panel a {
    display: block;
    padding: 10px 0;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.nav-panel a:last-child {
    border-bottom: none;
}

.nav-panel a:hover {
    color: var(--color-primary);
}

/* Content */
.content {
    min-width: 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius);
    padding: 48px;
    color: white;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 480px;
    margin-bottom: 24px;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Article Cards */
.article-grid {
    display: grid;
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    gap: 24px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-card .thumb {
    width: 200px;
    height: 140px;
    background: var(--color-bg-dark);
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .cat {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.article-card h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-card h2 a {
    color: var(--color-text);
}

.article-card h2 a:hover {
    color: var(--color-primary);
}

.article-card .excerpt {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-card .meta {
    margin-top: auto;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--color-text-light);
}

/* Single Article */
.article-single .hero {
    background: white;
    color: var(--color-text);
    padding: 40px;
}

.article-single .hero h1 {
    font-size: 36px;
}

.article-body {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    font-size: 17px;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 16px;
}

/* Popular Items */
.popular-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.popular-item .title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}

.popular-item .count {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Footer */
.site-footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-light);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.2s;
}

.btn-google:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-light);
}

.btn-google img {
    width: 18px;
    height: 18px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: var(--color-bg-dark);
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu span {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

/* Poll Widget */
.poll-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    margin-bottom: 24px;
}

.poll-widget h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-widget .question {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.poll-btn:hover {
    background: rgba(255,255,255,0.25);
}

.poll-btn .icon {
    font-size: 16px;
}

.poll-btn.yes { border-left: 3px solid var(--color-success); }
.poll-btn.no { border-left: 3px solid var(--color-danger); }
.poll-btn.maybe { border-left: 3px solid var(--color-warning); }

.poll-results {
    margin-top: 16px;
}

.poll-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.poll-bar .label {
    font-size: 12px;
    width: 60px;
    opacity: 0.9;
}

.poll-bar .bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.poll-bar .bar-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.poll-bar .percent {
    font-size: 12px;
    width: 40px;
    text-align: right;
    opacity: 0.9;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-top: 24px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.comments-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-header .count {
    background: var(--color-primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.comment-form {
    margin-bottom: 24px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-form .guest-notice {
    font-size: 13px;
    color: var(--color-text-muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

/* Comment List */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: 8px;
}

.comment-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-item .avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-item .content {
    flex: 1;
}

.comment-item .header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-item .author {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.comment-item .time {
    font-size: 12px;
    color: var(--color-text-light);
}

.comment-item .text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.comment-item .actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-item .actions button {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.comment-item .actions button:hover {
    color: var(--color-primary);
}

/* Vote buttons on article */
.vote-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: var(--color-bg-dark);
    border-color: var(--color-text-light);
}

.vote-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Forum-like engagement */
.engagement-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.engagement-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--color-text);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Infinite Scroll & Pagination */
.infinite-scroll-container {
    position: relative;
}

.load-more-trigger {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.loading-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modern Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.pagination span.current {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Load More Button */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 32px auto;
    padding: 14px 24px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn.loading {
    pointer-events: none;
}

/* No more content message */
.no-more-content {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Custom Video Player */
.custom-video-player {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    z-index: 10;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: #fff;
}

.play-button .material-symbols-outlined {
    font-size: 40px;
    color: var(--color-primary);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.3);
}

.control-btn .material-symbols-outlined {
    font-size: 24px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.1s;
}

/* Video Link Styling */
.video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.video-link:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}

.video-link::before {
    content: 'link';
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 28px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 50px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-nav-links a:hover {
    background: var(--color-bg-alt);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .site-header {
        padding: 0 12px;
    }
    
    .site-header .container {
        position: relative;
        justify-content: center;
        padding: 8px 0;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-img {
        height: 24px !important;
        max-width: 100px !important;
    }
    
    .main-nav {
        display: none;
    }
    
    .search {
        display: none;
    }
    
    .search-toggle {
        display: flex;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
    }
    
    .site-body {
        padding: 12px;
    }
    
    .article-card {
        padding: 12px;
    }
    
    .article-card h3 {
        font-size: 15px;
    }
    
    .article-card p {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .site-body {
        grid-template-columns: 1fr;
    }
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero {
        padding: 32px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .article-card {
        flex-direction: column;
    }
    .article-card .thumb {
        width: 100%;
        height: 180px;
    }
    .search input {
        width: 44px;
        padding-left: 44px;
    }
    .search input:focus {
        width: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-title {
        font-size: 24px;
    }
    
    .gallery-categories {
        gap: 8px;
    }
    
    .gallery-categories a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 40px 0;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.gallery-desc {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.gallery-categories a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.gallery-categories a:hover,
.gallery-categories a.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 13px;
    opacity: 0.9;
}

.gallery-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.8;
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.gallery-empty .material-symbols-outlined {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-info {
    color: white;
    text-align: center;
    padding: 20px;
}

.lightbox-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.lightbox-info p {
    font-size: 14px;
    opacity: 0.9;
}
