/*
Theme Name: IPTV Select UK SEO
Theme URI: https://iptvselect.com
Author: IPTV Select
Author URI: https://iptvselect.com
Description: High-performance, SEO-optimized WordPress theme specifically designed for UK search rankings. Features Core Web Vitals optimization, UK-specific schema markup, mobile-first responsive design, and comprehensive structured data implementation.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iptvselect-uk-seo
Domain Path: /languages
Tags: seo, responsive, lightweight, mobile-first, uk, iptv, accessibility-ready, custom-menu, featured-images

*/

/* ==========================================================================
   CSS VARIABLES - Easy UK Brand Customization
   ========================================================================== */
:root {
    /* Primary Colors - Indigo/Purple Accent */
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #a5b4fc;
    
    /* Text Colors - Dark Theme */
    --text-primary: #f1f5f9;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-light: #ffffff;
    
    /* Background Colors - Dark Theme */
    --bg-primary: #080810;
    --bg-secondary: #0d0d1a;
    --bg-tertiary: #121220;
    --bg-dark: #06060c;
    
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Font Families - System fonts for performance */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
    
    /* Shadows - Dark Theme */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Container */
    --container-max: 1200px;
    --content-max: 800px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-md);
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   TYPOGRAPHY - SEO Optimized Heading Hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--primary-color);
}

h3 {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
    margin-top: var(--space-xl);
    color: var(--text-secondary);
}

h4 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-lg);
}

h5 {
    font-size: var(--font-size-lg);
    margin-top: var(--space-lg);
}

h6 {
    font-size: var(--font-size-base);
    margin-top: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

/* Links - SEO friendly with clear visual distinction */
a {
    color: #818cf8;
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: #a5b4fc;
}

/* Content links */
.entry-content a,
.post-content a {
    font-weight: 500;
}

/* External link indicator */
.entry-content a[rel*="external"]::after,
.post-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    vertical-align: super;
}

/* Lists */
ul, ol {
    margin: 0 0 var(--space-lg) var(--space-xl);
}

li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

li::marker {
    color: var(--primary-color);
}

/* Blockquotes */
blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(99, 102, 241, 0.06);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

pre {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.content-area {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Two Column Layout */
.site-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .site-content.has-sidebar {
        grid-template-columns: 1fr 320px;
    }
}

/* ==========================================================================
   HEADER - Dark Theme
   ========================================================================== */
.site-header {
    background: rgba(8, 8, 16, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 20px;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Site Branding */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.site-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* UK Trust Badge */
.uk-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.04);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.uk-trust-badge svg {
    width: 16px;
    height: 16px;
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: block;
    }
}

.main-navigation ul {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.navbar-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .navbar-hamburger {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    padding: var(--space-xl);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: var(--space-2xl) 0 0 0;
}

.mobile-menu li {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.navbar-mobile a {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

/* Menu toggle bar styling */
.navbar-hamburger span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

/* Mobile dropdown — hidden by default on all pages */
.navbar-mobile {
    display: none;
    flex-direction: column;
    background: #09090f;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 12px 24px 20px;
}

.navbar-mobile.open {
    display: flex;
}

/* ==========================================================================
   BREADCRUMBS - SEO Critical
   ========================================================================== */
.breadcrumbs {
    padding: var(--space-md) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    font-size: var(--font-size-sm);
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    color: var(--text-muted);
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumbs-list a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs-list .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
main {
    padding: var(--space-2xl) 0;
    min-height: 60vh;
}

/* ==========================================================================
   ARTICLES & POSTS
   ========================================================================== */
.post, .page, article {
    margin-bottom: var(--space-3xl);
}

/* Post Header */
.entry-header {
    margin-bottom: var(--space-xl);
}

.entry-title {
    margin-bottom: var(--space-md);
}

.entry-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

/* Post Meta - Important for E-E-A-T */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-xl);
}

.entry-meta a {
    color: var(--text-secondary);
}

.entry-meta .author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.entry-meta .last-updated {
    font-weight: 500;
    color: var(--primary-color);
}

/* Author Box - E-E-A-T */
.author-box {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--font-size-lg);
}

.author-title {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.author-bio {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.author-bio p {
    margin: 0;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Content */
.entry-content {
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

/* Content Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.wp-caption {
    max-width: 100%;
    margin: var(--space-xl) 0;
}

.wp-caption img {
    margin-bottom: var(--space-sm);
}

.wp-caption-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Tables - For comparison content */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: var(--font-size-sm);
}

.entry-content table th,
.entry-content table td {
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    text-align: left;
}

.entry-content table th {
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}

.entry-content table tr:nth-child(even) {
    background: var(--bg-secondary);
}

/* Responsive Tables */
@media (max-width: 768px) {
    .entry-content table {
        display: block;
        overflow-x: auto;
    }
}

/* Post Footer */
.entry-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

/* Categories & Tags */
.post-categories,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-link,
.tag-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-link:hover,
.tag-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* ==========================================================================
   INFO BOXES & CALLOUTS - UK Compliance
   ========================================================================== */
.info-box {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.info-box--info {
    background: rgba(2, 132, 199, 0.1);
    border-left: 4px solid #0284c7;
}

.info-box--warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.info-box--success {
    background: rgba(5, 150, 105, 0.1);
    border-left: 4px solid #059669;
}

.info-box--danger {
    background: rgba(220, 38, 38, 0.1);
    border-left: 4px solid #dc2626;
}

.info-box--uk-legal {
    background: rgba(99, 102, 241, 0.06);
    border: 2px solid var(--primary-color);
}

.info-box h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--font-size-base);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: calc(var(--space-2xl) + 80px);
}

.widget {
    margin-bottom: var(--space-xl);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    margin: 0;
}

.widget li {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #06060c;
    color: #e2e8f0;
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-widget h2.footer-heading {
    color: #ffffff;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-md);
}

.footer-widget ul {
    list-style: none;
    margin: 0;
}

.footer-widget li {
    margin-bottom: var(--space-sm);
    color: #cbd5e1;
}

.footer-widget a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-widget a:hover {
    color: #ffffff;
}

.site-footer p {
    color: #cbd5e1;
}

/* UK Business Info */
.uk-business-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.uk-business-info p {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--font-size-xs);
    color: #cbd5e1;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
}

.copyright {
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: #6366f1;
    color: #ffffff;
}

.btn--primary:hover {
    background: #818cf8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* Search Form */
.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-form input[type="search"] {
    flex: 1;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-2xl) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
.table-of-contents {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    border: 1px solid var(--border-light);
}

.table-of-contents h4 {
    margin: 0 0 var(--space-md) 0;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.table-of-contents ul {
    margin: 0;
    list-style: decimal;
}

.table-of-contents li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

.table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.related-posts {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 2px solid var(--border-light);
}

.related-posts h3 {
    margin-bottom: var(--space-xl);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.related-post-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card .card-content {
    padding: var(--space-lg);
}

.related-post-card h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--font-size-base);
}

.related-post-card a {
    color: var(--text-primary);
    text-decoration: none;
}

.related-post-card a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGES
   ========================================================================== */
.archive-header,
.page-header {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--border-light);
}

.archive-title,
.page-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-sm);
}

.archive-description,
.taxonomy-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.post-list article {
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   UK SPECIFIC ELEMENTS
   ========================================================================== */

/* UK Price Display */
.uk-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.uk-price::before {
    content: '£';
}

/* GBP Currency */
.gbp-amount {
    font-weight: 600;
}

/* UK Rating Stars */
.uk-rating {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
}

/* UK Legal Disclaimer */
.uk-disclaimer {
    background: var(--bg-tertiary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-2xl);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-lg { margin-top: var(--space-lg); }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .breadcrumbs,
    .related-posts,
    .comments,
    .navigation {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .entry-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT (Optional)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --border-light: #334155;
        --border-medium: #475569;
    }
}

/* ─── SUBSCRIPTION POPUP MODAL (Global) ─────────── */
.sub-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.sub-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sub-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    max-width: 460px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    color: #1a1a2e;
}

.sub-popup-overlay.is-visible .sub-popup {
    transform: translateY(0) scale(1);
}

.sub-popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-popup-close:hover {
    color: #333;
}

.sub-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.sub-popup-plan {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.sub-popup-price {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.sub-popup-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

.trial-price {
    color: #16a34a !important;
}

.trial-badge {
    text-align: center;
    display: inline-block;
    width: 100%;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 20px;
    border-radius: 30px;
}

.sub-popup .trial-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
}

.sub-form-group {
    margin-bottom: 18px;
}

.sub-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.sub-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 14px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}

.sub-input-icon {
    font-size: 1.1rem;
    color: #999;
    margin-right: 10px;
    flex-shrink: 0;
}

.sub-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 0;
    font-size: 0.95rem;
    color: #333;
    outline: none;
}

.sub-input-wrap input::placeholder {
    color: #bbb;
}

.sub-submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.sub-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
}

.sub-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
