/*
Theme Name: FoxDog Newsroom
Theme URI: https://foxdogmedia.com
Description: Professional newsroom-style theme with dynamic branding. Features auto-color schemes based on niche selection, modern sticky navigation, SimpleFlying-style homepage layout, and dark footer. Perfect for content-focused sites across any niche.
Author: Fox Dog Media
Author URI: https://foxdogmedia.com
Template: foxdog-universal-v1.4.1
Version: 1.0.0
Text Domain: foxdog-newsroom
*/

/* =================================================================
   TYPOGRAPHY - Work Sans (Professional News Style)
   ================================================================= */

body,
.site-title,
.entry-title,
h1, h2, h3, h4, h5, h6,
.feed-title a,
.hero-title,
.section-header h2,
.nav-menu a,
.story-title,
.video-title a {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, .entry-title, .hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2, .section-header h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3, h4, .feed-title a, .video-title a {
    font-weight: 600;
}

.nav-menu a {
    font-weight: 600;
    letter-spacing: 0.01em;
}

body {
    font-weight: 400;
    line-height: 1.7;
}

strong, b {
    font-weight: 600;
}

/* =================================================================
   CSS VARIABLES - Dynamic Color Scheme
   These are overridden by theme options based on niche selection
   ================================================================= */

:root {
    /* Primary Colors - Default Blue (overridden per-site) */
    --primary-dark: #0f172a;
    --primary-main: #334155;
    --primary-light: #475569;

    /* Accent Colors - Default Orange */
    --accent-main: #64748b;
    --accent-light: #94a3b8;
    --accent-dark: #475569;

    /* Neutral Colors */
    --cloud-white: #F8FAFC;
    --night-dark: #1a202c;
    --runway-gray: #64748B;

    /* Professional Slate Colors (Tailwind-based) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

/* =================================================================
   NAVIGATION - Modern Sticky Header
   ================================================================= */

.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(26, 54, 93, 0.1);
    transition: all 0.3s ease;
}

.modern-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    color: var(--accent-main);
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--slate-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.current {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-subscribe-btn {
    background: #1e293b;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-subscribe-btn:hover {
    background: #334155;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-spacer {
    height: 85px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-subscribe {
    margin-top: 2rem;
}

.mobile-subscribe-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #1e293b;
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

body.menu-open {
    overflow: hidden;
}

/* =================================================================
   DYNAMIC LOGO STYLES
   ================================================================= */

.newsroom-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.newsroom-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.newsroom-logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--primary-dark);
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.newsroom-logo-text .highlight {
    color: var(--primary-light);
}

.modern-nav.scrolled .newsroom-logo-text {
    font-size: 20px;
}

.modern-nav.scrolled .newsroom-logo-icon {
    width: 30px;
    height: 30px;
}

/* =================================================================
   HOMEPAGE HERO SECTION - SimpleFlying Style
   ================================================================= */

.sf-hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 15px 0;
}

.sf-hero-grid {
    display: flex;
    gap: 20px;
}

.sf-left-col {
    flex: 7;
}

.sf-right-col {
    flex: 3;
    min-width: 280px;
}

.sf-hero-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sf-hero-card img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.sf-hero-card .sf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 60px 20px 20px;
}

.sf-hero-card .sf-title {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.sf-hero-card .sf-title a {
    color: #fff;
    text-decoration: none;
}

.sf-secondary-grid {
    display: flex;
    gap: 12px;
}

.sf-secondary-card {
    flex: 1;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.sf-secondary-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 6px 6px 0 0;
}

.sf-secondary-card .sf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 50px 14px 14px;
}

.sf-secondary-card .sf-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.sf-secondary-card .sf-title a {
    color: #fff;
    text-decoration: none;
}

/* Latest Sidebar */
.sf-latest-header {
    font-size: 26px;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.sf-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sf-latest-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 24px;
    border-left: 2px solid #e0e0e0;
    margin-left: 6px;
}

.sf-latest-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.sf-latest-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
}

.sf-latest-item a {
    text-decoration: none;
    color: #0F1111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.sf-latest-item a:hover {
    color: var(--primary-light);
}

.sf-latest-time {
    font-size: 14px;
    color: #888;
    margin-top: 3px;
}

/* =================================================================
   TRENDING SECTION - Video-Style Cards
   ================================================================= */

.trending-section {
    padding: 4rem 0;
    background: var(--slate-50);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-title a:hover {
    color: var(--accent-main);
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--slate-500);
}

/* =================================================================
   RECENT POSTS - Clean 3-Column Grid
   ================================================================= */

.recent-posts {
    padding: 3rem 0;
    background: #ffffff;
}

.posts-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feed-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feed-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.feed-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.feed-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--slate-500);
}

.feed-title {
    margin-bottom: 0.75rem;
}

.feed-title a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.feed-title a:hover {
    color: var(--accent-main);
}

.feed-excerpt {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feed-link:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}

/* Category Badges */
.feed-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* =================================================================
   NEWSLETTER SIGNUP
   ================================================================= */

.social-signup {
    padding: 2rem 0;
    background: #ffffff;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    margin: 3rem 0;
}

.signup-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    background: var(--slate-100);
    border: 2px solid var(--slate-300);
    border-radius: 4px;
}

.signup-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--slate-900);
}

.signup-card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--slate-700);
    line-height: 1.5;
}

/* =================================================================
   FOOTER - Dark Professional Style
   ================================================================= */

.site-footer {
    background: var(--primary-dark);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-main);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-title,
.footer-column h3.footer-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-description,
.footer-about .footer-description {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-category-list,
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-category-list li,
.footer-link-list li {
    margin-bottom: 0;
    line-height: 1.5;
}

.footer-category-list a,
.footer-link-list a,
.site-footer a {
    color: #93c5fd !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-category-list a:hover,
.footer-link-list a:hover,
.site-footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

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

.footer-copyright p {
    color: #cbd5e1;
    margin: 0;
    font-size: 0.875rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.trust-badge svg {
    color: #ef4444;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1024px) {
    .posts-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 968px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .sf-hero-grid {
        flex-direction: column;
    }

    .sf-secondary-grid {
        flex-wrap: wrap;
    }

    .sf-secondary-card {
        flex: 1 1 calc(50% - 6px);
    }

    .posts-feed {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .nav-spacer {
        height: 70px;
    }

    .newsroom-logo-text {
        font-size: 18px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .social-signup,
    .modern-nav {
        display: none;
    }
}

/* =================================================================
   SINGLE POST - Image Constraints
   ================================================================= */

.single .entry-content img,
article.post .entry-content img,
.entry-content img {
    max-width: 100% !important;
    height: auto !important;
}

.post-thumbnail img,
.wp-post-image {
    max-width: 100% !important;
    height: auto !important;
}

