/*
Theme Name: Starter Gamma
Description: Sport theme — mobile-first, no dependencies
Version: 2.0
Author: Claw
Text Domain: starter-gamma
*/

:root {
    --color-primary: #1A1A1A;
    --color-accent: #E30613;
    --color-accent2: #FF6B35;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #f5f5f5;
    --color-border: #e5e7eb;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 8px 24px rgba(0,0,0,.1);
    --transition: .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); transition: color var(--transition); text-decoration: none; }
a:hover { color: var(--color-accent2); }

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

.site-header { background: var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,.2); position: sticky; top: 0; z-index: 1000; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.site-branding img, .custom-logo { max-height: 45px; width: auto; display: block; }
.site-branding .site-title { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; margin: 0; padding: 0; }
.nav-menu a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .9rem; }
.nav-menu a:hover { color: var(--color-accent); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: .25rem; color: #fff; }
.mobile-nav { display: none; }
.mobile-nav.open { display: block; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu a { display: block; padding: .75rem 0; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; }
.mobile-menu a:hover { color: var(--color-accent); }
@media(max-width:768px) { .mobile-menu-toggle { display: block; } .main-nav { display: none; } }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { background: var(--color-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; line-height: 1.35; }
.card-title a { color: var(--color-primary); text-decoration: none; }
.card-title a:hover { color: var(--color-accent); }
.card-meta { color: var(--color-text-light); font-size: .85rem; }
.card-excerpt { color: var(--color-text-light); font-size: .88rem; margin: .5rem 0 0; line-height: 1.5; }
@media(min-width:600px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .grid { grid-template-columns: repeat(3,1fr); } }

.badge { display: inline-block; background: var(--color-accent); color: #fff; padding: .2rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.badge:hover { background: var(--color-accent2); color: #fff; }
.badge.overlay { position: absolute; top: .75rem; left: .75rem; z-index: 2; }

.placeholder-img { width: 100%; height: 100%; min-height: 180px; background: linear-gradient(135deg, var(--color-accent), var(--color-accent2)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 2rem; }

.breadcrumbs { font-size: .85rem; color: var(--color-text-light); margin: 1.5rem 0; }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-accent); }

.single-layout { max-width: 800px; margin: 0 auto; padding: 1.5rem 0 3rem; }
.single-header { margin-bottom: 1.5rem; }
.entry-title { font-size: 2rem; font-weight: 900; line-height: 1.2; margin: .5rem 0; color: var(--color-primary); }
.single-meta { color: var(--color-text-light); font-size: .9rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.single-featured-image { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.single-featured-image img { width: 100%; }
.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--color-primary); }
.entry-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--color-bg-alt); border-left: 4px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.entry-content a { color: var(--color-accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.entry-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.entry-share { margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.entry-share a { display: inline-block; padding: .4rem .8rem; background: var(--color-bg-alt); border-radius: 4px; font-size: .85rem; color: var(--color-text); text-decoration: none; }
.entry-share a:hover { background: var(--color-accent); color: #fff; }
/* sidebar hidden — single is centered */

.related-posts { padding: 2rem 0; max-width: 1000px; margin: 0 auto; }
.related-grid { margin-top: 1rem; }
.section-title { font-size: 1.3rem; font-weight: 800; color: var(--color-primary); }

.post-nav { display: flex; justify-content: space-between; gap: 2rem; margin: 2rem 0; padding: 2rem 0; border-top: 1px solid var(--color-border); }
.post-nav a { color: var(--color-primary); text-decoration: none; }
.post-nav a:hover { color: var(--color-accent); }

.archive-header { padding: 2rem 0 1rem; }
.archive-title { font-size: 2rem; font-weight: 900; color: var(--color-primary); }
.archive-desc { color: var(--color-text-light); margin: .5rem 0 0; }
.archive-count { color: var(--color-text-light); font-size: .9rem; margin-top: .5rem; }
.archive-layout { padding-bottom: 3rem; }

.sidebar { padding: 1.5rem 0; }
.widget { margin-bottom: 2rem; }
.widget h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-accent); }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: .4rem 0; border-bottom: 1px solid var(--color-border); }
.widget a { color: var(--color-text); text-decoration: none; }
.widget a:hover { color: var(--color-accent); }

.pagination { margin: 2rem 0; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: .5rem .75rem; border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text); text-decoration: none; margin: 0 .2rem; }
.pagination a:hover, .pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

.no-posts { text-align: center; padding: 3rem; color: var(--color-text-light); grid-column: 1 / -1; }

.site-footer { background: var(--color-primary); color: rgba(255,255,255,.7); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin: 0 0 1rem; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .85rem; }
@media(min-width:768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-accent2); }

.page-404 { text-align: center; padding: 4rem 1rem; }
.page-404 h1 { font-size: 5rem; color: var(--color-accent); margin-bottom: .5rem; }
.page-404 p { color: var(--color-text-light); margin-bottom: 2rem; }
.page-404 a { display: inline-block; padding: .75rem 1.5rem; background: var(--color-accent); color: #fff; border-radius: 6px; font-weight: 700; }
.page-404 a:hover { background: var(--color-accent2); }

.search-header { padding: 2rem 0 1rem; }
.search-title { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); }
