/*
Theme Name: Travel and Food Guy
Theme URI: https://travelandfoodguy.com
Author: Alex Ostrovsky
Author URI: https://travelandfoodguy.com
Description: Custom WordPress theme for Travel and Food Guy — honest travel reviews, cruise ship tours, airline lounge reviews, hotel stays, and destination experiences from a real family traveler.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: flavor-flavor-flavor-flavor-flavor-flavor-flavor-flavor-flavor-travel-and-food-guy
Tags: travel, blog, food, family, custom-theme, responsive
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Core brand colors */
  --tfg-sky: #3AABDF;
  --tfg-sky-dark: #1A7FB5;
  --tfg-sky-light: #D6F0FA;
  --tfg-yellow: #FFD600;
  --tfg-white: #FFFFFF;
  --tfg-navy: #0D2137;
  --tfg-coral: #E84040;
  --tfg-cream: #F7FBFE;
  --tfg-gray: #EEF4F8;
  --tfg-muted: #5A7A94;

  /* Typography */
  --tfg-font-headline: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --tfg-font-tagline: 'Lora', Georgia, serif;
  --tfg-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --tfg-max-width: 1200px;
  --tfg-radius: 12px;
  --tfg-radius-sm: 8px;
  --tfg-shadow: 0 4px 24px rgba(13, 33, 55, 0.08);
  --tfg-shadow-hover: 0 8px 32px rgba(13, 33, 55, 0.16);
  --tfg-transition: 0.2s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--tfg-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tfg-navy);
  background-color: var(--tfg-cream);
}

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

a {
  color: var(--tfg-sky-dark);
  text-decoration: none;
  transition: color var(--tfg-transition);
}

a:hover {
  color: var(--tfg-sky);
}

::selection {
  background: var(--tfg-sky-light);
  color: var(--tfg-navy);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tfg-font-headline);
  color: var(--tfg-navy);
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px);
}

p {
  margin-bottom: 1rem;
}

blockquote {
  font-family: var(--tfg-font-tagline);
  font-style: italic;
  color: var(--tfg-muted);
  border-left: 4px solid var(--tfg-yellow);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--tfg-gray);
  border-radius: 0 var(--tfg-radius-sm) var(--tfg-radius-sm) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.tfg-container {
  width: 100%;
  max-width: var(--tfg-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.tfg-section {
  padding: 48px 0;
}

.tfg-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.tfg-section-header h2 {
  margin: 0;
}

.tfg-section-header .tfg-view-all {
  font-family: var(--tfg-font-headline);
  font-size: 13px;
  font-weight: 600;
  color: var(--tfg-sky-dark);
  transition: color var(--tfg-transition);
}

.tfg-section-header .tfg-view-all:hover {
  color: var(--tfg-sky);
}

.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;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.tfg-header {
  background: linear-gradient(135deg, var(--tfg-sky-dark) 0%, var(--tfg-sky) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(13, 33, 55, 0.15);
}

/* WP admin bar offset */
.admin-bar .tfg-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .tfg-header {
    top: 46px;
  }
}

.tfg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  max-width: var(--tfg-max-width);
  margin: 0 auto;
}

/* Logo */
.tfg-logo {
  flex-shrink: 0;
}

.tfg-logo a {
  font-family: var(--tfg-font-headline);
  font-weight: 900;
  font-size: 18px;
  color: var(--tfg-white);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.tfg-logo a span {
  color: var(--tfg-yellow);
}

/* Navigation */
.tfg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tfg-nav a {
  font-family: var(--tfg-font-headline);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: var(--tfg-radius-sm);
  transition: all var(--tfg-transition);
  text-decoration: none;
}

.tfg-nav a:hover,
.tfg-nav a.current {
  color: var(--tfg-yellow);
  background: rgba(255, 255, 255, 0.1);
}

/* Header actions */
.tfg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tfg-header-search {
  position: relative;
}

.tfg-header-search input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--tfg-radius-sm);
  padding: 6px 14px 6px 32px;
  font-family: var(--tfg-font-body);
  font-size: 13px;
  color: var(--tfg-white);
  width: 160px;
  transition: all var(--tfg-transition);
  outline: none;
}

.tfg-header-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tfg-header-search input:focus {
  width: 220px;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.tfg-header-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.tfg-subscribe-btn {
  display: inline-block;
  background: var(--tfg-yellow);
  color: var(--tfg-navy);
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: var(--tfg-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--tfg-transition);
  text-decoration: none;
}

.tfg-subscribe-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--tfg-navy);
}

/* Mobile menu toggle */
.tfg-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.tfg-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tfg-white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.tfg-hero {
  background: linear-gradient(135deg, var(--tfg-navy) 0%, #1A3A5C 60%, var(--tfg-sky-dark) 100%);
  position: relative;
  overflow: hidden;
}

.tfg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg, rgba(58, 171, 223, 0.1) 0%, rgba(255, 214, 0, 0.05) 100%);
  border-radius: 0 0 0 40%;
  pointer-events: none;
}

.tfg-hero-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 56px 24px;
  max-width: var(--tfg-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tfg-hero-content {
  flex: 1;
}

.tfg-hero-badge {
  display: inline-block;
  background: var(--tfg-coral);
  color: var(--tfg-white);
  font-family: var(--tfg-font-headline);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tfg-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--tfg-white);
  margin-bottom: 12px;
  line-height: 1.05;
}

.tfg-hero h1 .tfg-highlight {
  color: var(--tfg-yellow);
  display: block;
}

.tfg-hero-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}

.tfg-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tfg-btn-primary {
  display: inline-block;
  background: var(--tfg-yellow);
  color: var(--tfg-navy);
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--tfg-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--tfg-transition);
  text-decoration: none;
}

.tfg-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.3);
  color: var(--tfg-navy);
}

.tfg-btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--tfg-white);
  font-family: var(--tfg-font-headline);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 28px;
  border-radius: var(--tfg-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--tfg-transition);
  text-decoration: none;
}

.tfg-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--tfg-white);
}

.tfg-hero-image {
  width: 400px;
  max-width: 40%;
  flex-shrink: 0;
}

.tfg-hero-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--tfg-radius);
}

.tfg-hero-image .tfg-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--tfg-sky-dark), var(--tfg-sky));
  border-radius: var(--tfg-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--tfg-font-headline);
  font-size: 14px;
}

/* ==========================================================================
   POST CARDS
   ========================================================================== */
.tfg-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tfg-post-card {
  background: var(--tfg-white);
  border-radius: var(--tfg-radius);
  overflow: hidden;
  box-shadow: var(--tfg-shadow);
  transition: transform var(--tfg-transition), box-shadow var(--tfg-transition);
}

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

.tfg-post-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.tfg-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tfg-post-card:hover .tfg-post-card-image img {
  transform: scale(1.05);
}

/* Branded placeholder for posts without featured images */
.tfg-post-card-image .tfg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tfg-sky-dark), var(--tfg-sky));
  display: flex;
  align-items: center;
  justify-content: center;
}

.tfg-placeholder-logo {
  font-family: var(--tfg-font-headline);
  font-weight: 900;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.tfg-post-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--tfg-font-headline);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tfg-badge-cruise {
  background: var(--tfg-yellow);
  color: var(--tfg-navy);
}

.tfg-badge-lounge {
  background: var(--tfg-sky);
  color: var(--tfg-white);
}

.tfg-badge-hotel {
  background: var(--tfg-navy);
  color: var(--tfg-white);
}

.tfg-badge-tips {
  background: var(--tfg-coral);
  color: var(--tfg-white);
}

.tfg-badge-new {
  background: var(--tfg-coral);
  color: var(--tfg-white);
}

.tfg-post-card-body {
  padding: 16px 20px;
}

.tfg-post-card-title {
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 16px;
  color: var(--tfg-navy);
  line-height: 1.3;
  margin-bottom: 6px;
}

.tfg-post-card-title a {
  color: inherit;
  text-decoration: none;
}

.tfg-post-card-title a:hover {
  color: var(--tfg-sky);
}

.tfg-post-card-meta {
  font-size: 13px;
  color: var(--tfg-muted);
}

.tfg-post-card-excerpt {
  font-size: 14px;
  color: var(--tfg-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ==========================================================================
   YOUTUBE EMBED SECTION
   ========================================================================== */
.tfg-youtube-section {
  background: var(--tfg-white);
  border-radius: var(--tfg-radius);
  box-shadow: var(--tfg-shadow);
  overflow: hidden;
}

.tfg-youtube-inner {
  display: flex;
  gap: 28px;
  padding: 24px;
  align-items: center;
}

.tfg-youtube-embed {
  width: 360px;
  flex-shrink: 0;
}

.tfg-youtube-embed iframe,
.tfg-youtube-embed .tfg-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--tfg-radius-sm);
  border: none;
}

.tfg-youtube-embed .tfg-placeholder {
  background: linear-gradient(135deg, var(--tfg-coral), var(--tfg-navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.tfg-youtube-content {
  flex: 1;
}

.tfg-youtube-label {
  font-family: var(--tfg-font-headline);
  font-size: 11px;
  font-weight: 700;
  color: var(--tfg-coral);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tfg-youtube-title {
  font-family: var(--tfg-font-headline);
  font-weight: 900;
  font-size: 20px;
  color: var(--tfg-navy);
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.tfg-youtube-desc {
  font-size: 14px;
  color: var(--tfg-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tfg-youtube-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tfg-btn-youtube {
  display: inline-block;
  background: var(--tfg-coral);
  color: var(--tfg-white);
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 20px;
  border-radius: var(--tfg-radius-sm);
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--tfg-transition);
}

.tfg-btn-youtube:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--tfg-white);
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.tfg-newsletter {
  background: linear-gradient(135deg, var(--tfg-sky) 0%, var(--tfg-sky-dark) 100%);
  padding: 48px 0;
  text-align: center;
}

.tfg-newsletter h2 {
  color: var(--tfg-white);
  margin-bottom: 8px;
}

.tfg-newsletter p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-bottom: 24px;
}

.tfg-newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}

.tfg-newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--tfg-radius-sm);
  padding: 12px 18px;
  font-family: var(--tfg-font-body);
  font-size: 14px;
  color: var(--tfg-white);
  outline: none;
  transition: all var(--tfg-transition);
}

.tfg-newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tfg-newsletter-form input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.tfg-newsletter-form button {
  background: var(--tfg-yellow);
  color: var(--tfg-navy);
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--tfg-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--tfg-transition);
  white-space: nowrap;
}

.tfg-newsletter-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tfg-footer {
  background: linear-gradient(160deg, var(--tfg-navy) 0%, #1A3A5C 100%);
  padding: 48px 0 0;
}

.tfg-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
}

.tfg-footer-brand .tfg-footer-logo {
  font-family: var(--tfg-font-headline);
  font-weight: 900;
  font-size: 20px;
  color: var(--tfg-white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tfg-footer-brand .tfg-footer-logo span {
  color: var(--tfg-yellow);
}

.tfg-footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tfg-footer-social {
  display: flex;
  gap: 8px;
}

.tfg-footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--tfg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tfg-transition);
  text-decoration: none;
}

.tfg-footer-social a:hover {
  background: rgba(255, 214, 0, 0.25);
}

.tfg-footer-social a svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.7);
}

.tfg-footer-social a:hover svg {
  fill: var(--tfg-yellow);
}

.tfg-footer h4 {
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 13px;
  color: var(--tfg-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tfg-footer-links {
  list-style: none;
}

.tfg-footer-links li {
  margin-bottom: 8px;
}

.tfg-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--tfg-transition);
}

.tfg-footer-links a:hover {
  color: var(--tfg-yellow);
}

.tfg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
}

.tfg-footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.tfg-single-header {
  background: linear-gradient(135deg, var(--tfg-navy) 0%, #1A3A5C 60%, var(--tfg-sky-dark) 100%);
  padding: 48px 0;
}

.tfg-single-header .tfg-post-category {
  display: inline-block;
  font-family: var(--tfg-font-headline);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: var(--tfg-sky);
  color: var(--tfg-white);
}

.tfg-single-header h1 {
  color: var(--tfg-white);
  margin-bottom: 12px;
}

.tfg-single-header .tfg-post-meta-bar {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.tfg-single-header .tfg-post-meta-bar a {
  color: rgba(255, 255, 255, 0.8);
}

.tfg-single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.tfg-single-content p {
  font-size: 17px;
  line-height: 1.8;
}

.tfg-single-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tfg-single-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.tfg-single-content img {
  border-radius: var(--tfg-radius);
  margin: 1.5rem 0;
}

.tfg-single-content ul,
.tfg-single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.tfg-single-content li {
  margin-bottom: 0.5rem;
}

/* Responsive video embeds */
.tfg-single-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--tfg-radius);
  margin: 1.5rem 0;
  border: none;
}

/* Author bio */
.tfg-author-bio {
  background: var(--tfg-gray);
  border-radius: var(--tfg-radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.tfg-author-bio img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tfg-author-bio h4 {
  font-family: var(--tfg-font-headline);
  font-size: 16px;
  margin-bottom: 4px;
}

.tfg-author-bio p {
  font-size: 14px;
  color: var(--tfg-muted);
  margin: 0;
}

/* Related posts */
.tfg-related-posts {
  background: var(--tfg-gray);
  padding: 48px 0;
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGES
   ========================================================================== */
.tfg-archive-header {
  background: linear-gradient(135deg, var(--tfg-sky-dark) 0%, var(--tfg-sky) 100%);
  padding: 40px 0;
  text-align: center;
}

.tfg-archive-header h1 {
  color: var(--tfg-white);
  margin-bottom: 8px;
}

.tfg-archive-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.tfg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.tfg-pagination a,
.tfg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--tfg-radius-sm);
  transition: all var(--tfg-transition);
}

.tfg-pagination a {
  background: var(--tfg-white);
  color: var(--tfg-navy);
  box-shadow: var(--tfg-shadow);
}

.tfg-pagination a:hover {
  background: var(--tfg-sky);
  color: var(--tfg-white);
  text-decoration: none;
}

.tfg-pagination span.current {
  background: var(--tfg-sky);
  color: var(--tfg-white);
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */
.tfg-search-header {
  background: linear-gradient(135deg, var(--tfg-sky-dark) 0%, var(--tfg-sky) 100%);
  padding: 40px 0;
  text-align: center;
}

.tfg-search-header h1 {
  color: var(--tfg-white);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.tfg-404 {
  text-align: center;
  padding: 80px 24px;
}

.tfg-404 h1 {
  font-size: 72px;
  color: var(--tfg-sky);
  margin-bottom: 16px;
}

.tfg-404 p {
  font-size: 18px;
  color: var(--tfg-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   SOCIAL SHARE BUTTONS
   ========================================================================== */
.tfg-share-bar {
  background: var(--tfg-gray);
  border-radius: var(--tfg-radius);
  padding: 20px 24px;
  margin: 32px 0;
}

.tfg-share-label {
  display: block;
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 14px;
  color: var(--tfg-navy);
  margin-bottom: 12px;
}

.tfg-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tfg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--tfg-radius-sm);
  font-family: var(--tfg-font-headline);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  color: var(--tfg-white);
  background: var(--share-color);
  transition: all var(--tfg-transition);
  cursor: pointer;
  border: none;
}

.tfg-share-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: var(--tfg-white);
  text-decoration: none;
}

.tfg-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.tfg-share-copy {
  min-width: 60px;
}

/* Mobile native share button — floating */
.tfg-share-native {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  background: var(--tfg-sky);
  color: var(--tfg-white);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(58, 171, 223, 0.4);
  align-items: center;
  gap: 6px;
  transition: all var(--tfg-transition);
}

.tfg-share-native:hover {
  background: var(--tfg-sky-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58, 171, 223, 0.5);
}

.tfg-share-native svg {
  fill: currentColor;
}

@media screen and (max-width: 768px) {
  .tfg-share-native {
    display: flex;
  }

  .tfg-share-btn span {
    display: none;
  }

  .tfg-share-btn {
    padding: 10px;
    border-radius: 50%;
  }

  .tfg-share-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.tfg-comments {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.tfg-comments h2 {
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  background: var(--tfg-white);
  border-radius: var(--tfg-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--tfg-shadow);
}

.comment-author {
  font-family: var(--tfg-font-headline);
  font-weight: 700;
}

.comment-meta {
  font-size: 13px;
  color: var(--tfg-muted);
  margin-bottom: 8px;
}

/* Comment form */
.comment-form label {
  display: block;
  font-family: var(--tfg-font-headline);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--tfg-navy);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--tfg-gray);
  border-radius: var(--tfg-radius-sm);
  font-family: var(--tfg-font-body);
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color var(--tfg-transition);
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--tfg-sky);
}

.comment-form input[type="submit"] {
  background: var(--tfg-sky);
  color: var(--tfg-white);
  font-family: var(--tfg-font-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  border-radius: var(--tfg-radius-sm);
  cursor: pointer;
  transition: all var(--tfg-transition);
}

.comment-form input[type="submit"]:hover {
  background: var(--tfg-sky-dark);
}

/* ==========================================================================
   AD ZONES (Placeholders for future AdSense)
   ========================================================================== */
.tfg-ad-zone {
  display: none; /* Hidden until AdSense is activated */
  background: var(--tfg-gray);
  border-radius: var(--tfg-radius-sm);
  padding: 20px;
  text-align: center;
  margin: 24px 0;
}

.tfg-ad-zone.active {
  display: block;
}

.tfg-ad-leaderboard {
  max-width: var(--tfg-max-width);
  margin: 0 auto;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tfg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--tfg-sky);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tfg-sky-dark);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .tfg-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tfg-hero-image {
    max-width: 35%;
  }

  .tfg-youtube-inner {
    flex-direction: column;
  }

  .tfg-youtube-embed {
    width: 100%;
  }

  .tfg-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .tfg-footer-brand {
    grid-column: span 2;
  }
}

@media screen and (max-width: 768px) {
  .tfg-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--tfg-sky-dark);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .tfg-nav.active {
    display: flex;
  }

  .tfg-nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .tfg-menu-toggle {
    display: block;
  }

  .tfg-header-search {
    display: none;
  }

  .tfg-hero-inner {
    flex-direction: column;
    padding: 32px 24px;
  }

  .tfg-hero-image {
    max-width: 100%;
    width: 100%;
  }

  .tfg-hero-image img,
  .tfg-hero-image .tfg-placeholder {
    height: 200px;
  }

  .tfg-post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tfg-post-card-image {
    height: 180px;
  }

  .tfg-youtube-inner {
    padding: 16px;
  }

  .tfg-newsletter-form {
    flex-direction: column;
  }

  .tfg-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tfg-footer-brand {
    grid-column: span 1;
  }

  .tfg-author-bio {
    flex-direction: column;
    text-align: center;
  }

  .tfg-section {
    padding: 32px 0;
  }
}

@media screen and (max-width: 480px) {
  .tfg-header-inner {
    padding: 0 16px;
  }

  .tfg-hero h1 {
    font-size: 24px;
  }

  .tfg-hero-actions {
    flex-direction: column;
  }

  .tfg-subscribe-btn {
    display: none;
  }
}

/* ==========================================================================
   WORDPRESS CORE ALIGNMENT CLASSES
   ========================================================================== */
.alignwide {
  max-width: calc(var(--tfg-max-width) + 100px);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* WordPress block editor support */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  border-radius: var(--tfg-radius);
}

.wp-caption-text,
.wp-block-image figcaption {
  font-size: 13px;
  color: var(--tfg-muted);
  text-align: center;
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}

.gallery img {
  border-radius: var(--tfg-radius-sm);
}
