/* Gaming Theme Variables */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --primary: #f43f5e;
    /* E.g. Rose Red/Pink for accents */
    --accent: #8b5cf6;
    /* Violet */
    --border: #334155;
}

body {
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

header nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for gaming feel */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 4px;
    /* Slightly angular */
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    /* Cyberpunk shape */
}

.btn:hover {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

/* Blog Grid */
.section-title {
    font-size: 1.5rem;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin: 40px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Grid - 2 Columns Side by Side */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Equal Columns */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    display: flex;
    /* Horizontal Internal Layout */
    align-items: center;
    height: 220px;
    /* Increased further for elegance */
}

.card:hover {
    transform: translateX(5px);
    /* Slide right slightly */
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 210px;
    /* Increased width proportionally */
    height: 100%;
    background: #2d3748;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

/* Badge overlay */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Moved to left */
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary);
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: bold;
    border: 1px solid var(--primary);
}

.card-content {
    padding: 15px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Increased lines to fill space */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    /* Ensure gap before button */
}

.read-more {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: auto;
    /* Push to bottom if flex container has space */
    transition: 0.3s;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.read-more:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

/* Mobile Responsiveness */
@media(max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        /* Stack on mobile/tablet */
    }
}

@media(max-width: 600px) {
    .card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        width: 100%;
        height: 180px;
    }

    .card:hover {
        transform: translateY(-5px);
    }
}

/* Footer */
footer {
    background: #0b1120;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    margin-top: auto;
}

@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
}

/* Login Button in Header */
.login-btn {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--primary) !important;
    transition: 0.3s;
    background: rgba(244, 63, 94, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.6);
}