/*
Theme Name: Footballsts
Theme URI: https://yourdomain.com
Author: Your Name
Description: A lightweight, slot-based master template tailored with a modern, eco-friendly SaaS aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: startermaster
*/

/* STREAMING_CHUNK: Defining Design Tokens & Eco-SaaS Variables /
:root {
/ Fonts */
--font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

/* Eco Neutral Palette - Tinted subtly with green */
--color-bg: #ffffff;
--color-surface: #f4fbf7; /* Very soft, airy mint/green off-white */
--color-border: #d1e5d9; /* Soft grey-green border */
--color-text: #0f291e; /* Deep forest slate for high contrast but organic feel */
--color-text-muted: #4b6b5a; /* Muted sage green-grey */

/* Eco SaaS Accent Colors */
--color-primary: #10b981; /* Vibrant modern emerald */
--color-primary-hover: #047857; /* Deeper, richer emerald for hover states */
--color-accent-light: #e6f7f0; /* Soft green badge wash background */
--color-danger: #ef4444; /* Modern red for warnings or errors */

/* Layout Constants */
--container-max-width: 1200px;
--radius-standard: 12px; /* Slightly softer, friendlier corners typical of SaaS */
--shadow-sm: 0 1px 2px 0 rgba(16, 185, 129, 0.05); /* Green-tinted shadow */
--shadow-md: 0 4px 6px -1px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(16, 185, 129, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -2px rgba(16, 185, 129, 0.05);
--transition-fast: 0.2s ease;


}

/* STREAMING_CHUNK: Initializing Reset Rules & Core Typography */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: var(--font-primary);
background-color: var(--color-bg);
color: var(--color-text);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; /* Crisper text rendering */
}

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

a {
color: var(--color-primary);
text-decoration: none;
transition: color var(--transition-fast);
}

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

/* STREAMING_CHUNK: Designing Base Layout Column Systems */
.container {
width: 100%;
max-width: var(--container-max-width);
margin-right: auto;
margin-left: auto;
padding-right: 1.5rem;
padding-left: 1.5rem;
}

/* The 70/30 Sidebar Layout (Used in single.php & page-tool.php) */
.layout-columns {
display: flex;
flex-direction: column;
gap: 2rem;
padding-top: 2rem;
padding-bottom: 2rem;
}

@media (min-width: 768px) {
.layout-columns {
flex-direction: row;
}

.main-content-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from breaking layouts */
}

.sidebar-column {
    width: 300px;
    flex-shrink: 0;
}


}

/* STREAMING_CHUNK: Formatting Card Components & Layout Fallbacks */
.fallback-layout {
padding-top: 3rem;
padding-bottom: 3rem;
}

.posts-grid {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Upgraded Card for SaaS Vibe */
.card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-standard);
padding: 1.5rem;
box-shadow: var(--shadow-sm);
transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px); /* Slight lift on hover /
border-color: rgba(16, 185, 129, 0.3); / Subtle green border pop */
}

/* STREAMING_CHUNK: Styling WP Core Layout Alignment Classes */
.aligncenter {
display: block;
margin: 1.5rem auto;
}

.alignleft {
float: left;
margin: 0 1.5rem 1.5rem 0;
}

.alignright {
float: right;
margin: 0 0 1.5rem 1.5rem;
}

/* STREAMING_CHUNK: Crafting Button & CTA Element Styles /
.wp-block-button__link {
display: inline-block;
background-color: var(--color-primary);
color: #ffffff;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-standard);
font-weight: 600; / Slightly bolder for SaaS CTAs */
box-shadow: var(--shadow-sm);
transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.wp-block-button__link:hover {
background-color: var(--color-primary-hover);
color: #ffffff;
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}

/* STREAMING_CHUNK: Constructing Highlights Hub Layouts (.fhh) /
/ Wrapper Layout */
.fhh-wrapper {
background-color: var(--color-surface);
color: var(--color-text);
padding: 40px 20px;
min-height: 100vh;
}

.fhh-container {
max-width: var(--container-max-width);
margin: 0 auto;
}

/* Header Text elements */
.fhh-header {
margin-bottom: 48px;
text-align: center;
}

.fhh-title {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 12px;
color: var(--color-text);
letter-spacing: -0.025em;
}

.fhh-subtitle {
color: var(--color-text-muted);
font-size: 1.125rem;
max-width: 600px;
margin: 0 auto;
}

/* Spacers & Dynamic Segment Separators */
.fhh-section-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--color-text);
margin: 48px 0 24px 0;
display: flex;
align-items: center;
gap: 12px;
border-bottom: 2px solid var(--color-border);
padding-bottom: 12px;
}

/* Dynamic active state indicators */
.fhh-badge-active {
background-color: var(--color-primary);
color: #ffffff;
font-size: 0.7rem;
padding: 4px 10px;
border-radius: 9999px;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.05em;
}

/* STREAMING_CHUNK: Custom Highlights Grid and Media Layout Card Rules */
.fhh-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 28px;
}

/* FHH Card with Eco-SaaS Transitions */
.fhh-card {
background-color: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-standard);
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
display: flex;
flex-direction: column;
}

.fhh-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
border-color: rgba(16, 185, 129, 0.4);
}

/* Thumbnail wrapper & Aspect Ratio /
.fhh-thumb-wrapper {
position: relative;
padding-top: 56.25%; / 16:9 widescreen format /
background-color: #0c1a11; / Extremely dark forest background wash for loading state */
}

.fhh-thumb {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: filter var(--transition-fast);
}

/* STREAMING_CHUNK: Play Overlay Icon Customization /
.fhh-play-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.95);
background-color: rgba(16, 185, 129, 0.95); / Dynamic glowing Emerald green indicator /
color: #ffffff;
border-radius: 50%;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
padding-left: 2px; / Visually centers the play triangle play icon */
opacity: 0;
box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.fhh-card:hover .fhh-play-icon {
opacity: 1;
transform: translate(-50%, -50%) scale(1.05);
}

/* STREAMING_CHUNK: Formatting Card Body Copy & Spacing */
.fhh-card-content {
padding: 20px;
display: flex;
flex-direction: column;
flex-grow: 1;
}

.fhh-video-type {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
color: var(--color-primary);
margin-bottom: 8px;
letter-spacing: 0.05em;
}

.fhh-video-title {
font-size: 0.95rem;
font-weight: 700;
line-height: 1.4;
margin-bottom: 12px;
color: var(--color-text);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.fhh-video-title a {
color: inherit;
text-decoration: none;
}

.fhh-video-title a:hover {
color: var(--color-primary);
}

.fhh-meta {
font-size: 0.8rem;
color: var(--color-text-muted);
margin-top: auto;
display: flex;
justify-content: space-between;
border-top: 1px solid var(--color-surface);
padding-top: 12px;
}

/* STREAMING_CHUNK: Formatting Archive Layout Elements & Fallback Notices */
.fhh-archive-section {
margin-top: 60px;
border-top: 1px dashed var(--color-border);
padding-top: 20px;
}

.fhh-archive-section .fhh-card {
background-color: var(--color-surface);
}

.fhh-no-videos {
color: var(--color-text-muted);
font-style: italic;
grid-column: 1 / -1;
text-align: center;
padding: 48px 0;
background: var(--color-surface);
border-radius: var(--radius-standard);
border: 2px dashed var(--color-border);
}