/* ===========================
   GAMING THEME CSS
   Fortnite-inspired design
   =========================== */

/* CSS Variables */
:root {
    --bg-dark: #0a0e27;
    --bg-card: #151b3d;
    --bg-card-hover: #1a2149;
    --accent-blue: #00d4ff;
    --accent-purple: #9d4edd;
    --accent-yellow: #ffd60a;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --border-glow: rgba(0, 212, 255, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-yellow);
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    border-bottom: 3px solid var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-blue);
}

.logo .highlight {
    color: var(--accent-blue);
    padding: 0 8px;
}

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

.nav-link {
    font-size: 18px;
    font-weight: 700;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px var(--border-glow);
}

/* Main Content Layout */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Homepage Hero */
.hero-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1e2654 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 0 30px var(--border-glow);
}

.hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-blue);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
}

.post-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px var(--border-glow);
    transform: translateY(-5px);
}

.post-meta {
    color: var(--accent-yellow);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.post-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: var(--text-primary);
}

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

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Single Post */
.post-single {
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 40px;
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-blue);
}

.post-single .post-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.post-content {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h2,
.post-content h3 {
    color: var(--accent-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag {
    background: var(--accent-purple);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.post-discussion {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.post-discussion h3 {
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.widget {
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.trending-list,
.categories-list {
    list-style: none;
}

.trending-list li,
.categories-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trending-list li:last-child,
.categories-list li:last-child {
    border-bottom: none;
}

.trending-list a,
.categories-list a {
    color: var(--text-secondary);
    display: block;
    transition: all 0.3s ease;
}

.trending-list a:hover,
.categories-list a:hover {
    color: var(--accent-yellow);
    padding-left: 10px;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 3px solid var(--accent-blue);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    color: var(--text-secondary);
    margin: 5px 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    border-color: var(--accent-yellow);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Page Title */
.page-title {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    font-weight: 700;
}

.pagination a:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-single .post-title {
        font-size: 32px;
    }
}
