/*
Theme Name: TechPlusTrends Theme
Theme URI: https://techplustrends.com/
Author: AI Assistant
Author URI: https://techplustrends.com/
Description: A modern, high-contrast theme for tech, gadgets, and gaming news.
Version: 1.0
License: GPLv2 or later
Text Domain: techplustrends
*/

/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #2563eb; /* Tech Blue */
    --secondary-color: #1e293b; /* Dark Slate */
    --accent-color: #06b6d4; /* Cyan for Gadgets */
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --white: #ffffff;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { 
    background-color: var(--secondary-color); /* Dark fallback color */
    background-image: url('path/to/your/futuristic-circuit-image.jpg'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center center;
    color: var(--text-dark); 
    line-height: 1.6; 
}

/* --- HEADER DESIGN --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -1px;
}
.logo span { color: var(--primary-color); }

.nav-links { display: flex; gap: 30px; }
.nav-links li { display: inline-block; }

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    background: var(--primary-color); bottom: -5px; left: 0;
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.cta-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}
.cta-btn:hover { background: var(--secondary-color); }

/* --- HERO & POST GRID STYLES --- */
.hero {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-img {
    width: 100%;
    height: 400px;
    background-color: #ddd; /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.featured-content { padding: 30px; }
.category-tag {
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}
.post-title { font-size: 2rem; margin: 15px 0; line-height: 1.2; }
.post-meta { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 15px; }

.section-title {
    max-width: var(--max-width);
    margin: 40px auto 20px;
    padding: 0 20px;
    font-size: 1.5rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.grid-container {
    max-width: var(--max-width);
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-5px); }
.card-img { height: 200px; background: #e2e8f0; }
.card-body { padding: 20px; }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* --- FOOTER DESIGN --- */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-color); margin-left: 5px; }

.newsletter input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}
.newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .menu-toggle { display: block; }
    .hero { grid-template-columns: 1fr; }
}