/*
Theme Name: Reflect Relay
Theme URI: https://reflectrelay.com
Author: Reflect Relay Team
Description: A modern WordPress theme for news and blog websites with comprehensive content pages
Version: 1.0
License: MIT
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    /* Dark theme colors */
    --primary-color: #ef4444;
    --primary-hover: #dc2626;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --border-hover: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* BBC Header Styles */
.bbc-header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ticker-label {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content span {
    display: inline-block;
    animation: ticker 30s linear infinite;
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* BBC Navigation Bar */
.bbc-nav-bar {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bbc-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bbc-logo .logo-text {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.bbc-main-nav {
    display: flex;
    align-items: center;
}

.bbc-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.bbc-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.bbc-nav-link:hover,
.bbc-nav-link.active {
    color: var(--primary-color);
}

.bbc-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-theme);
}

.bbc-search-toggle,
.bbc-theme-toggle,
.bbc-menu-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.bbc-search-toggle:hover,
.bbc-theme-toggle:hover,
.bbc-menu-toggle:hover {
    background: var(--bg-tertiary);
}

/* Search Bar */
.bbc-search-bar {
    display: none;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bbc-search-bar.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.bbc-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.bbc-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.bbc-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.bbc-search-button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bbc-search-button:hover {
    background: var(--primary-hover);
}

/* Theme Toggle Icons */
.bbc-theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .bbc-theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .bbc-theme-toggle .moon-icon {
    display: block;
}

/* Menu Toggle Icons */
.bbc-menu-toggle .close-icon {
    display: none;
}

.bbc-menu-toggle.active .menu-icon {
    display: none;
}

.bbc-menu-toggle.active .close-icon {
    display: block;
}

/* Main Content Styles */
.bbc-main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* BBC Hero Section */
.bbc-hero-section {
    padding: 32px 0;
    background: var(--bg-primary);
}

.bbc-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.bbc-hero-main {
    position: relative;
}

.bbc-hero-story {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-theme);
}

.bbc-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    color: white;
}

.bbc-category-tag {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.bbc-hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.2;
    color: white;
}

.bbc-hero-title a {
    color: white;
    text-decoration: none;
}

.bbc-hero-title a:hover {
    text-decoration: underline;
}

.bbc-hero-description {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.bbc-hero-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    opacity: 0.8;
}

/* BBC Hero Sidebar */
.bbc-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bbc-sidebar-story {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bbc-sidebar-story:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bbc-sidebar-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.bbc-sidebar-content {
    padding: 1rem;
}

.bbc-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.bbc-sidebar-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.bbc-sidebar-title a:hover {
    color: var(--primary-color);
}

/* Latest Updates Section */
.bbc-latest-updates {
    margin-bottom: 3rem;
}

.bbc-section-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.bbc-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bbc-updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .bbc-updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bbc-updates-grid {
        grid-template-columns: 1fr;
    }
}

.bbc-updates-column {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.bbc-column-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.bbc-column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
}

.bbc-updates-story {
    margin-bottom: 1.5rem;
}

.bbc-updates-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.bbc-updates-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.bbc-updates-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.bbc-updates-title a:hover {
    color: var(--primary-color);
}

.bbc-updates-brief {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.bbc-updates-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bbc-updates-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.bbc-updates-link:hover {
    color: var(--primary-color);
}

/* Most Read Section */
.bbc-most-read {
    margin-bottom: 3rem;
}

.bbc-most-read-list {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.bbc-most-read-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbc-most-read-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bbc-most-read-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bbc-most-read-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bbc-most-read-link:hover {
    color: var(--primary-color);
}

.bbc-most-read-number {
    background-color: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.bbc-most-read-text {
    font-weight: 500;
    line-height: 1.4;
}

/* Page Header */
.bbc-page-header {
    padding: 2rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.bbc-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.bbc-page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.footer-social a:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bbc-hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bbc-updates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .bbc-nav-content {
        justify-content: space-between;
    }
    
    .bbc-page-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bbc-hero-story {
        height: 400px;
    }
    
    .bbc-hero-title {
        font-size: 1.5rem;
    }
    
    .bbc-hero-description {
        font-size: 1rem;
    }
    
    .bbc-updates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bbc-updates-column {
        padding: 1rem;
    }
}

/* Basic WordPress Content Styles */
.main-content {
    padding: 2rem 0;
}

.main-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.main-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Author styles */
.bbc-author {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Timestamp styles */
.bbc-timestamp {
    color: var(--text-muted);
    font-size: 0.875rem;
}
