/*
Theme Name: TaktikBola
Theme URI: https://taktikbola.my.id
Author: TaktikBola Team
Author URI: https://taktikbola.my.id
Description: Tema kustom TaktikBola untuk analisis taktik, formasi sepak bola, dan berita mendalam.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taktikbola
Tags: blog, news, custom-colors, custom-logo, featured-images, full-width-template, theme-options, translation-ready

--------------------------------------------------------------
>>> TABLE OF CONTENTS:
1. CSS Variables & Reset
2. Typography & Base Elements
3. Structure & Layout
4. Header & Navigation
5. Post Cards & Grid
6. Single Article & Typography
7. Comments & Forms
8. Widgets & Sidebar
9. Footer
10. Accessibility & Core Classes
--------------------------------------------------------------
*/

/* 1. CSS Variables & Reset */
:root {
  --tb-primary: #0f172a;
  --tb-primary-light: #1e293b;
  --tb-accent: #10b981;
  --tb-accent-hover: #059669;
  --tb-pitch: #047857;
  --tb-pitch-dark: #064e3b;
  --tb-text: #1e293b;
  --tb-text-muted: #64748b;
  --tb-text-light: #94a3b8;
  --tb-bg: #f8fafc;
  --tb-card-bg: #ffffff;
  --tb-border: #e2e8f0;
  --tb-radius: 12px;
  --tb-radius-sm: 6px;
  --tb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --tb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --tb-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Typography & Base Elements */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--tb-bg);
  color: var(--tb-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

/* 3. Structure & Layout */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-container,
.header-container,
.footer-container {
  width: 100%;
  max-width: var(--tb-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-content {
  flex: 1 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  width: 100%;
  max-width: var(--tb-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 900px) {
  .site-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* 4. Header & Navigation */
.site-header {
  background: var(--tb-primary);
  color: #ffffff;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--tb-accent);
  position: relative;
  z-index: 50;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-logo-link {
  display: inline-block;
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.site-title a {
  color: #ffffff;
}

.site-title span {
  color: var(--tb-accent);
}

.site-description {
  font-size: 0.85rem;
  color: var(--tb-text-light);
  margin-top: 0.15rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.main-navigation a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

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

/* 5. Post Cards & Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  overflow: hidden;
  box-shadow: var(--tb-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow-lg);
}

.post-thumbnail {
  position: relative;
  background-color: var(--tb-primary-light);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-content-wrap {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tb-accent);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--tb-primary);
}

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

.post-excerpt {
  color: var(--tb-text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

.post-meta {
  font-size: 0.825rem;
  color: var(--tb-text-muted);
  border-top: 1px solid var(--tb-border);
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 6. Single Article & Typography */
.single-article {
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  padding: 2.5rem;
  box-shadow: var(--tb-shadow-sm);
}

@media (max-width: 640px) {
  .single-article {
    padding: 1.5rem;
  }
}

.entry-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--tb-border);
  padding-bottom: 1.5rem;
}

.entry-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tb-primary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.entry-meta {
  color: var(--tb-text-muted);
  font-size: 0.875rem;
}

.entry-thumbnail {
  border-radius: var(--tb-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.entry-content {
  font-size: 1.075rem;
  line-height: 1.85;
  color: #334155;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--tb-primary);
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 1.65rem;
}

.entry-content h3 {
  font-size: 1.35rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--tb-accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--tb-text-muted);
}

/* 7. Comments & Forms */
.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background-color: var(--tb-accent);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--tb-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-sm);
  font-size: 0.95rem;
  background-color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--tb-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* 8. Widgets & Sidebar */
.sidebar-widget {
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--tb-shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tb-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tb-accent);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tb-border);
}

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

/* 9. Footer */
.site-footer {
  background: var(--tb-primary);
  color: var(--tb-text-light);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: var(--tb-accent);
}

/* 10. Accessibility & Core Classes */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--tb-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--tb-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}
