/*
Theme Name: TheNextGenTech Authority
Theme URI: https://thenextgentech.com
Author: Professional Dev
Description: A premium, animated, ultra-modern dark theme for AI and Tech content.
Version: 2.0
Text Domain: thenextgentech
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #f0f0f5;
    --text-muted: #9aa0a6;
    --accent-primary: #00d2ff;
    --accent-secondary: #3a7bd5;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-glow: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(58, 123, 213, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.05), transparent 25%);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Header & Navigation */
.site-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.site-title a {
    text-decoration: none;
}

/* Navigation Menu */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-primary);
}

.main-navigation a:hover::after {
    width: 100%;
    left: 0;
    background: var(--gradient-glow);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInDown 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

/* Main Layout Grid */
.container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(0, 210, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.post-title {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card:hover .post-title a {
    color: var(--accent-primary);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more i {
    transition: transform 0.3s ease;
    color: var(--accent-primary);
}

.post-card:hover .read-more {
    color: var(--accent-primary);
}

.post-card:hover .read-more i {
    transform: translateX(5px);
}

/* Sidebar & Widgets */
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.widget-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.widget-title i {
    color: var(--accent-primary);
}

.widget p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Gradient Buttons */
.btn-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: var(--gradient-glow);
    background-size: 200% auto;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-glow:hover {
    background-position: right center;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    transform: scale(1.02);
}

.btn-discord {
    background: #5865F2;
}
.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(10, 10, 15, 0.8);
}

/* Ad Placeholders */
.ad-placeholder {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.ad-leaderboard { width: 100%; height: 90px; margin: 40px auto; max-width: 728px; }
.ad-sidebar { width: 100%; height: 250px; background: transparent; border: 1px dashed rgba(255,255,255,0.1); }

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .header-container { flex-direction: column; gap: 15px; }
    .hero-title { font-size: 2.5rem; }
}