/*
Theme Name: Trading Card Nerd
Theme URI: https://tradingcardnerd.com
Author: Trading Card Nerd
Author URI: https://tradingcardnerd.com
Description: Minimal, Elementor-friendly theme for Trading Card Nerd. Supports Elementor-built headers and footers, full-width layouts, and auto-seeds demo posts and news on activation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradingcardnerd
Tags: elementor, blog, news, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* Theme baseline — most styling comes from Elementor + the TCN widget plugin. */
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: #e63946; }

.tcn-site { display: flex; flex-direction: column; min-height: 100vh; }
.tcn-site-main { flex: 1; }

/* Default single/archive layout — Elementor-built pages use full width */
.tcn-default-content {
    max-width: 840px;
    margin: 40px auto;
    padding: 0 24px;
}
.tcn-default-content h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 0.5em; }
.tcn-default-content h2 { font-size: 1.6rem; margin-top: 1.5em; }
.tcn-default-content .entry-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 24px;
}
.tcn-default-content .post-thumbnail { margin-bottom: 24px; border-radius: 8px; overflow: hidden; }

.tcn-archive-list { display: grid; gap: 24px; }
.tcn-archive-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.tcn-archive-item img { border-radius: 6px; height: 140px; object-fit: cover; width: 100%; }
.tcn-archive-item h2 { margin: 0 0 8px; font-size: 1.25rem; }
.tcn-archive-item h2 a { color: #1a1a1a; text-decoration: none; }
.tcn-archive-item h2 a:hover { color: #e63946; }

@media (max-width: 640px) {
    .tcn-archive-item { grid-template-columns: 1fr; }
    .tcn-archive-item img { height: 200px; }
}

/* Minimal fallback header/footer (only shown before user builds Elementor ones) */
.tcn-fallback-header,
.tcn-fallback-footer {
    padding: 14px 24px;
    background: #0f1419;
    color: #fff;
    text-align: center;
    font-size: 13px;
}
.tcn-fallback-header a,
.tcn-fallback-footer a { color: #ffb703; text-decoration: none; }
