/*
Theme Name: TimesJi_NewsSolution
Theme URI: https://news-builder.dev
Author: Ji
Description: A highly polished, lightweight, search engine-optimized (SEO) news agency portal theme. Perfect for rapid publishing and full ad placement control.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-wp
Tags: news, blog, one-column, two-columns, right-sidebar, custom-menu, custom-logo, threaded-comments, translation-ready
*/

/* Reset & Custom Brand Overrides */
:root {
    --wp-primary-color: #F26522;
    --wp-font-family: sans-serif;
}

body {
    font-family: var(--wp-font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    background-color: #f8fafc;
}

/* Custom advertising classes */
.wp-ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin: 1.5rem 0;
    padding: 0.75rem;
    border-radius: 4px;
}
.wp-ad-label {
    font-size: 9px;
    font-family: monospace;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Breaking-news ticker (marquee 대체 CSS 애니메이션) */
.news-ticker-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.news-ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: news-ticker-scroll 18s linear infinite;
}
.news-ticker-viewport:hover .news-ticker-track {
    animation-play-state: paused;
}
@keyframes news-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* WP core alignment/caption compatibility */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #64748b; text-align: center; padding-top: 4px; }
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important; word-wrap: normal !important;
}

/* 사이트 커스텀 로고 크기 제한 */
.site-logo img, .custom-logo { max-height: 5rem; width: auto; }

/* 좌측 고정 사이드 배너 (PC 전용, xl 이상에서 flex는 Tailwind hidden xl:flex가 담당) */
.news-side-banners {
    position: fixed;
    left: 12px;
    top: 180px;
    z-index: 45;
}
