/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --glass-bg: rgba(2, 6, 23, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search-btn,
.nav-lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.nav-search-btn:hover,
.nav-lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-login-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.nav-post-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.nav-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 30px 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-light);
}

.mobile-menu .mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.mobile-menu-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.mobile-menu-buttons a {
    flex: 1;
    justify-content: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.mobile-menu-buttons .login-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
}

.mobile-menu-buttons .post-btn {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-main {
    grid-column: 1 / -1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 420px;
    cursor: pointer;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-main:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    margin-bottom: 14px;
    width: fit-content;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
    gap: 20px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
}

.hero-card .hero-overlay {
    padding: 20px;
}

.hero-card .hero-title {
    font-size: 17px;
    margin-bottom: 6px;
}

.hero-card .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 10px;
}

/* ===== SECTION HEADER ===== */
.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .title-accent {
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    gap: 8px;
}

/* ===== POST CARD ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.posts-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.08);
}

.post-card .post-thumb .post-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
}

.post-card .post-thumb .post-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.post-card .post-body {
    padding: 18px;
}

.post-card .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.post-card .post-title a:hover {
    color: var(--accent-light);
}

.post-card .post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.post-card .post-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-card .post-meta-left span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-card .post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card .post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card .post-author-name {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== LIST POST ===== */
.posts-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-post-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.list-post-card:hover {
    border-color: var(--border-light);
    transform: translateX(4px);
}

.list-post-card .list-post-thumb {
    width: 240px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.list-post-card .list-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.list-post-card:hover .list-post-thumb img {
    transform: scale(1.05);
}

.list-post-card .list-post-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.list-post-card .post-category {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-light);
    margin-bottom: 8px;
    width: fit-content;
}

.list-post-card .post-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.list-post-card .post-title a:hover {
    color: var(--accent-light);
}

.list-post-card .post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* ===== CATEGORIES BAR ===== */
.categories-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px 10px;
    max-width: 1280px;
    margin: 0 auto;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-chip:hover,
.cat-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== SIDEBAR ===== */
.content-with-sidebar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title .iconify {
    color: var(--accent-light);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trending-item .trending-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    min-width: 28px;
}

.trending-item .trending-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.trending-item .trending-title a:hover {
    color: var(--accent-light);
}

.trending-item .trending-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 110px 20px 40px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-header .page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.page-header .page-breadcrumb a:hover {
    color: var(--accent-light);
}

.page-header .page-breadcrumb .separator {
    font-size: 10px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SINGLE POST ===== */
.single-post {
    padding-top: 72px;
}

.single-post-header {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header .post-category {
    display: inline-flex;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    margin-bottom: 16px;
}

.single-post-header h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.single-post-header .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.single-post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post-image {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.single-post-image img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    object-fit: cover;
}

.single-post-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.single-post-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.single-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 35px 0 16px;
    letter-spacing: -0.3px;
}

.single-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.single-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-post-content img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.single-post-content ul, .single-post-content ol {
    margin: 16px 0;
    padding-left: 24px;
    list-style: disc;
    color: var(--text-secondary);
}

.single-post-content ol {
    list-style: decimal;
}

.single-post-content li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.post-tags a {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn.twitter:hover { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
.share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-btn.link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 30px;
}

.author-box img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box .author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-box .author-info .author-role {
    font-size: 13px;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.author-box .author-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Comments */
.comments-section {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.comments-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-item .comment-author {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.comment-item .comment-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-item .comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form button {
    margin-top: 12px;
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    transition: var(--transition);
}

.comment-form button:hover {
    background: var(--accent-dark);
}

/* ===== SEARCH ===== */
.search-box-large {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box-large input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.search-box-large input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box-large .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.search-results-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.search-results-info strong {
    color: var(--accent-light);
}

/* ===== VIDEO ===== */
.video-player-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
}

.video-player-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-xs);
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-login button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-xs);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.social-login button:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card .auth-logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-light);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.form-row a {
    font-size: 13px;
    color: var(--accent-light);
}

/* ===== LANGUAGE PAGE ===== */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.lang-card:hover,
.lang-card.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-4px);
}

.lang-card.active {
    box-shadow: 0 8px 25px var(--accent-glow);
}

.lang-card .lang-flag {
    font-size: 36px;
}

.lang-card .lang-name {
    font-size: 14px;
    font-weight: 600;
}

.lang-card .lang-native {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== POST NEWS ===== */
.post-news-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.post-news-form .form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

.image-upload {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-sm);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.image-upload:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.image-upload .upload-icon {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.image-upload p {
    font-size: 14px;
    color: var(--text-secondary);
}

.image-upload span {
    color: var(--accent-light);
    font-weight: 600;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination .dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 20px 30px;
    margin-top: 50px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-brand .footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--accent-light);
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-xs);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--accent); }

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ===== AUTHOR PAGE ===== */
.author-profile {
    text-align: center;
    padding: 50px 20px 30px;
}

.author-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--accent);
}

.author-profile h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.author-profile .author-role {
    font-size: 14px;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.author-profile .author-bio {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 16px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.author-stats .stat {
    text-align: center;
}

.author-stats .stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-light);
}

.author-stats .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== ARCHIVE ===== */
.archive-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-year {
    margin-bottom: 30px;
}

.archive-year h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-month {
    margin-bottom: 16px;
    margin-left: 20px;
}

.archive-month h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.archive-month a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.archive-month a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.archive-month a .count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .lang-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-login-btn,
    .nav-post-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-main {
        height: 300px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .hero-card {
        height: 200px;
    }

    .hero-card .hero-title {
        font-size: 15px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid.two-col {
        grid-template-columns: 1fr;
    }

    .list-post-card {
        flex-direction: column;
    }

    .list-post-card .list-post-thumb {
        width: 100%;
        min-height: 180px;
    }

    .section-title {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .single-post-header h1 {
        font-size: 24px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .social-login {
        flex-direction: column;
    }

    .author-stats {
        gap: 20px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-main {
        height: 250px;
    }

    .hero-overlay {
        padding: 20px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .auth-card {
        padding: 24px;
    }

    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lang-card {
        padding: 16px 12px;
    }

    .lang-card .lang-flag {
        font-size: 28px;
    }

    .post-news-form .form-card {
        padding: 20px;
    }
}

/* ===== LOADING ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}