/*
Theme Name: Future Focused Home
Theme URI: https://futurefocusedhome.com/
Author: James Ross
Author URI: https://futurefocusedhome.com/
Description: A professional tech-focused theme for James Ross, the Tech Expert. Features a modern, clean design optimized for reviews and automation guides.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: future-focused-home
Tags: blog, technology, modern, responsive
*/

:root {
    --color-bg-primary: #0a0e17;
    /* Deep Navy/Black */
    --color-bg-secondary: #111625;
    /* Slightly lighter for cards/sections */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0aec0;
    --color-accent: #3b82f6;
    /* Electric Blue */
    --color-accent-hover: #2563eb;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 8px;
}

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

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}


/* Entry Content Formatting */
.entry-content {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 2rem;
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.entry-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    /* For border radius */
}

.entry-content th,
.entry-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.entry-content th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.entry-content a:hover {
    text-decoration: none;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 2rem 0;
    padding: 1rem 2rem;
    font-style: italic;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Buttons */
.btn,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-primary);
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: var(--color-accent-hover);
    color: white;
}

/* Global Search Field */
.search-field {
    background-color: var(--color-bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    width: 100%;
}

.header-search .search-field {
    width: auto;
    flex: 1;
    min-width: 150px;
    max-width: 300px;
}

/* Header */
.site-header {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.custom-logo {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 60px;
    width: auto;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--color-accent);
}

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

.post-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: var(--spacing-md);
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

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

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

.post-meta {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.post-meta p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}

/* Content Layout (Sidebar Support) */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

@media (min-width: 900px) {
    .content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

/* Header Search */
.header-search {
    margin-left: auto;
}

.header-search form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search .search-field {
    flex: 1;
    margin: 0;
}

.header-search input[type="submit"],
.header-search button[type="submit"] {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Widget Area */
.widget-area {
    margin-top: 0;
}

@media (min-width: 900px) {
    .widget-area {
        margin-top: 0;
    }
}

.widget {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-text-secondary);
}

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

/* Post Grid Adjustment for Sidebar */
.post-grid {
    /* Since we are in a grid column now, we might want 1 column on mobile, 2 on tablet/desktop inside the main area */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}