/* Font imported in header.php for better performance */
:root {
    /* Ultra Premium Dark Theme Colors */
    --bg-dark: #07090e;
    /* Extremely dark blue/black */
    --bg-card: rgba(18, 22, 33, 0.6);
    --bg-card-hover: rgba(25, 30, 46, 0.8);

    /* Neon Accents */
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --neon-pink: #ff007f;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --button-gradient: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    --card-glow: 0 0 20px rgba(0, 240, 255, 0.15);

    /* Typography */
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;

    /* Borders & Glass */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-border-hover: 1px solid rgba(0, 240, 255, 0.3);
    --blur: blur(16px);

    --radius: 20px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Animated subtle background glow */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--neon-pink);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    display: flex;
    gap: 3rem;
    padding: 3rem 0;
    flex: 1;
}

.content-area {
    flex: 3;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Ultra Glass Header */
header {
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    gap: 2rem;
    padding: 0.5rem 2rem;
    flex-wrap: nowrap;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

nav a:hover {
    color: #fff;
}

nav ul li:first-child a {
    padding-left: 0;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: 0.3s ease;
}

nav a:hover::before {
    width: 100%;
}

/* Search with Glow */
.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.3rem 0.5rem;
    transition: 0.3s ease;
}

.search-form:focus-within {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    outline: none;
    width: 130px;
    font-family: inherit;
    font-weight: 400;
    transition: width 0.3s;
}

.search-input:focus {
    width: 200px;
}

.search-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.lang-selector.desktop-lang {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 6px; /* Adjusted down by ~2mm */
}

/* Spectacular Hero */
.hero {
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
    margin-top: 2rem;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 9, 14, 0.4), rgba(7, 9, 14, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title i {
    -webkit-text-fill-color: initial;
    color: var(--neon-blue);
    background: none;
}

/* Premium Card Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border: var(--glass-border-hover);
    box-shadow: var(--card-glow);
    background: var(--bg-card-hover);
}

.img-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-card), transparent);
    z-index: 1;
}

.card:hover .img-wrapper::after {
    background: linear-gradient(to top, var(--bg-card-hover), transparent);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.1) rotate(1deg);
}

.card-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-pink);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: rgba(255, 0, 127, 0.1);
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    width: max-content;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Beautiful Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--button-gradient);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

/* Sidebar Ultra Widgets */
.widget {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 500;
}

.category-list a i {
    width: 24px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.category-list a:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.category-list a:hover i {
    color: var(--neon-blue);
}

/* Telegram Widget Special */
.telegram-widget {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.telegram-widget::before {
    background: #0088cc;
}

.telegram-btn {
    background: #0088cc;
    width: 100%;
    justify-content: center;
}

.telegram-btn:hover {
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

/* Post Details (Single) */
.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.post-image-lg {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    border: var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.post-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.post-content h2 {
    margin: 2rem 0 1rem;
    color: #fff;
    font-size: 2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Info Table Styling */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--glass-border);
    background: var(--bg-card);
}

.info-table th,
.info-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table th {
    background: rgba(0, 0, 0, 0.2);
    width: 30%;
    color: #fff;
    font-weight: 600;
}

.info-table td {
    color: var(--text-secondary);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Download Mega Box */
.download-section {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.btn-download {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(10px);
    border-top: var(--glass-border);
    padding: 4rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Responsive & Mobile Optimization
   ========================================================================== */

/* Fluid Typography */
h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); }
.post-title { font-size: clamp(2rem, 7vw, 3.5rem); }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--neon-blue);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #111420;
    border-left: var(--glass-border);
    padding: 2.5rem;
    position: relative;
    transform: translateX(100%);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: serif;
}

.mobile-nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-search-box .search-form {
    width: 100%;
}

.mobile-search-box .search-input {
    flex: 1;
    width: 100%;
}

@media (max-width: 1100px) {
    .desktop-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .header-container { padding: 0.5rem 1.5rem; justify-content: space-between; }
    .logo { order: -1; }
    .header-actions { display: none; }
}

@media (max-width: 992px) {
    .main-content { flex-direction: column; gap: 2rem; }
    .sidebar { order: 2; width: 100%; }
    .content-area { order: 1; }
    .hero { padding: 3rem 1.5rem; margin-top: 1rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .post-image-lg { height: 280px; margin-bottom: 2rem; }
    .post-content { padding: 1.5rem; }
    .info-table th { width: 45%; }
    .card-title { font-size: 1.25rem; }
    .img-wrapper { height: 180px; }
    
    footer { padding: 3rem 0; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.5rem; }
    .hero p { font-size: 1rem; }
    .btn { width: 100%; justify-content: center; }
    .download-buttons { flex-direction: column; }
    .info-table th, .info-table td { padding: 0.8rem; font-size: 0.9rem; }
}