/*
Theme Name: UrduPress
Theme URI: https://example.com/urdupress
Author: UrduPress
Author URI: https://example.com
Description: ایک مکمل اردو نیوز ویب سائٹ تھیم - RTL سپورٹ کے ساتھ
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
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: urdupress
Tags: right-to-left, urdu, news, magazine, blog
*/

/* ============================================
   URDUPRESS THEME - MAIN STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

:root {
    --red: #e8222b;
    --dark: #111111;
    --gray: #444444;
    --light-gray: #f5f5f5;
    --border: #dddddd;
    --white: #ffffff;
    --font: 'Noto Nastaliq Urdu', 'Noto Kufi Arabic', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    direction: rtl;
    background: #f0f0f0;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== BREAKING NEWS BAR ===== */
.top-bar {
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    font-size: 12px;
}
.breaking-label {
    background: var(--red);
    color: #fff;
    padding: 3px 10px;
    font-weight: 700;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 2px;
}
.ticker-wrap { overflow: hidden; flex: 1; margin: 0 10px; }
.ticker-text {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    display: inline-block;
    color: #eee;
}
@keyframes ticker {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: #ccc;
    white-space: nowrap;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-size: 32px;
    font-weight: 700;
}
.logo-red { color: var(--red); }
.logo-box {
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    margin-left: 5px;
}
.header-search a { font-size: 20px; color: var(--dark); }
.hamburger-btn { font-size: 22px; cursor: pointer; background: none; border: none; }

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--dark);
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.main-nav ul li a {
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    display: block;
    transition: background 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a { background: var(--red); }

/* ===== AD BANNER ===== */
.ad-banner-wrap {
    background: var(--white);
    border: 1px dashed #ccc;
    margin: 8px 15px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 3px;
}
.ad-label {
    background: var(--red);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 10px;
}

/* ===== WEATHER WIDGET ===== */
.weather-bar {
    background: var(--white);
    margin: 0 15px 8px;
    padding: 10px 15px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
    border: 1px solid var(--border);
}
.weather-city { font-weight: 700; font-size: 14px; }
.weather-temp { font-size: 24px; font-weight: 700; }
.weather-icon { font-size: 26px; }
.weather-days { display: flex; gap: 12px; margin-right: 10px; }
.weather-day { text-align: center; font-size: 11px; white-space: nowrap; }
.weather-day .day-name { color: #888; margin-bottom: 3px; }
.weather-day .day-icon { font-size: 18px; margin: 2px 0; }
.weather-day .hi { color: #333; font-weight: 600; }
.weather-day .lo { color: #999; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}
.content-row {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 15px;
    margin-bottom: 15px;
}

/* ===== SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.slide { display: none; position: relative; }
.slide.active { display: block; }
.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.82;
}
.slide-caption {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.88));
    color: #fff;
    padding: 35px 18px 18px;
    font-size: 17px;
    font-weight: 700;
}
.slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}
.dot.active { background: var(--red); }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
    border-radius: 3px;
    transition: background 0.2s;
}
.slider-btn:hover { background: var(--red); }
.slider-btn.prev { right: 10px; }
.slider-btn.next { left: 10px; }

/* ===== SIDEBAR / POST LIST ===== */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.widget-title {
    background: var(--red);
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
}
.widget-title.dark { background: #222; }
.post-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.post-list-item:last-child { border-bottom: none; }
.post-list-item img {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.post-list-text { font-size: 12px; line-height: 1.5; color: #333; }
.post-meta { font-size: 10px; color: #999; margin-top: 3px; }

/* ===== SECTION TITLE ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
}
.section-header h2 {
    background: #222;
    color: #fff;
    padding: 5px 16px;
    font-size: 14px;
    border-radius: 3px;
    margin: 0;
}
.section-header h2.red-bg { background: var(--red); }
.see-more-link {
    font-size: 11px;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 3px 10px;
    border-radius: 3px;
    transition: all 0.2s;
}
.see-more-link:hover { background: var(--red); color: #fff; }

/* ===== NEWS CARDS ===== */
.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.news-card {
    background: var(--white);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}
.news-card .card-thumb {
    width: 100%;
    height: 115px;
    object-fit: cover;
}
.news-card .card-body { padding: 9px; }
.card-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 2px;
    margin-bottom: 5px;
}
.card-badge.blue { background: #1a73e8; }
.card-title { font-size: 12px; line-height: 1.6; color: #222; }
.card-meta { font-size: 10px; color: #999; margin-top: 5px; }

/* ===== VIDEO CARDS ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.video-card { border-radius: 3px; overflow: hidden; background: #000; position: relative; cursor: pointer; }
.video-card img { width: 100%; height: 105px; object-fit: cover; opacity: 0.75; transition: opacity 0.2s; }
.video-card:hover img { opacity: 0.92; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--red);
    pointer-events: none;
}
.video-duration {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
}
.video-info {
    padding: 7px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    font-size: 11px;
    color: #555;
}

/* ===== SHOWBIZ GRID ===== */
.showbiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.showbiz-card { position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.showbiz-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    transition: transform 0.3s;
}
.showbiz-card:hover img { transform: scale(1.05); }
.showbiz-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
}
.showbiz-caption {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.87));
    color: #fff;
    padding: 28px 10px 10px;
    font-size: 12px;
}

/* ===== SPORTS LAYOUT ===== */
.sports-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
}
.sport-list-item {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.sport-list-item:last-child { border-bottom: none; }
.sport-list-item img {
    width: 72px; height: 55px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.sport-list-text { font-size: 12px; line-height: 1.5; }
.featured-sport img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    border-radius: 3px;
}
.featured-title { font-size: 16px; font-weight: 700; margin: 8px 0 5px; }
.featured-excerpt { font-size: 12px; color: #555; line-height: 1.7; }

/* ===== COLUMN WIDGET ===== */
.col-items-list { padding: 0 10px; }
.col-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.col-item:last-child { border-bottom: none; }
.col-item img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.col-item-name { font-weight: 600; font-size: 11px; color: var(--red); }
.col-item-text { font-size: 12px; line-height: 1.5; margin-top: 2px; }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: #ccc;
    margin-top: 25px;
    padding: 28px 15px 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.footer-widget h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 13px;
    padding-bottom: 7px;
    border-bottom: 1px solid #333;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-tag {
    background: #1e1e1e;
    color: #aaa;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s;
}
.footer-tag:hover { background: var(--red); color: #fff; border-color: var(--red); }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; font-size: 12px; }
.footer-links li a { color: #aaa; transition: color 0.2s; }
.footer-links li a:hover { color: #fff; }
.footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0;
    padding: 14px 0;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
}
.social-icons { display: flex; gap: 8px; }
.social-icons a {
    width: 30px; height: 30px;
    background: #2a2a2a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    transition: background 0.2s;
}
.social-icons a:hover { background: var(--red); }

/* ===== SINGLE POST ===== */
.single-content { background: var(--white); border-radius: 4px; padding: 20px; border: 1px solid var(--border); }
.post-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.post-meta-bar { font-size: 11px; color: #999; margin-bottom: 15px; display: flex; gap: 15px; }
.post-meta-bar span::before { margin-left: 5px; }
.post-featured-img { width: 100%; border-radius: 4px; margin-bottom: 15px; }
.entry-content { font-size: 14px; line-height: 2; color: #333; }
.entry-content p { margin-bottom: 15px; }

/* ===== ARCHIVE ===== */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .content-row { grid-template-columns: 1fr; }
    .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
    .sports-wrap { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .showbiz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .news-grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .showbiz-grid { grid-template-columns: 1fr; }
    .site-logo { font-size: 24px; }
}
