/*
Theme Name: TribeWire
Theme URI: https://themes.developer.com/tribewire
Author: Developer
Description: Bold dramatic theme with hot pink accents, large Oswald typography, breaking news ticker, and high contrast design. Elementor compatible.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tribewire
Tags: blog, news, magazine, grid-layout, custom-logo, custom-menu, featured-images, footer-widgets, elementor
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Open Sans', sans-serif; color: #111; background: #f2f2f2; line-height: 1.7; overflow-x: hidden; }
a { color: #E72B99; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c42082; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: 'Oswald', sans-serif; color: #111; line-height: 1.3; font-weight: 700; }

/* ===== LAYOUT ===== */
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-area { display: flex; gap: 30px; padding: 30px 0; }
.main-content { flex: 1; min-width: 0; }
.sidebar-area { width: 300px; flex-shrink: 0; }
@media (max-width: 991px) { .content-area { flex-direction: column; } .sidebar-area { width: 100%; } }

/* ===== HEADER ===== */


.site-header { background: #1A1A1A; color: #ffffff;   }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { max-height: 40px; width: auto; }
.site-title { font-family: 'Oswald', sans-serif; font-size: 48px; font-weight: 700; color: #ffffff; letter-spacing: -0.5px; }
.site-title a { color: inherit; } .site-title a:hover { color: #E72B99; }
.site-description { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ===== HEADER SEARCH ===== */
.header-search { position: relative; }
.header-search input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; padding: 9px 16px; border-radius: 4px; font-size: 13px; width: 220px; transition: all 0.2s; font-family: 'Open Sans', sans-serif; }
.header-search input:focus { border-color: #E72B99; outline: none; width: 280px; background: rgba(255,255,255,0.12); }
.header-search input::placeholder { color: rgba(255,255,255,0.4); }

/* ===== MAIN NAVIGATION ===== */
.main-nav { background: #1A1A1A; border-top: 1px solid rgba(255,255,255,0.06); }
.main-nav .site-container { display: flex; align-items: center; justify-content: space-between; }
.nav-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.nav-menu li { position: relative; }
.nav-menu li a { display: block; padding: 14px 18px; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; border-bottom: 3px solid transparent; }
.nav-menu li a:hover, .nav-menu li.current-menu-item a, .nav-menu li.current_page_item a { color: #E72B99; border-bottom-color: #E72B99; }
.nav-menu li ul { display: none; position: absolute; top: 100%; left: 0; background: #1A1A1A; min-width: 220px; z-index: 200; border-top: 3px solid #E72B99; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.nav-menu li:hover > ul { display: block; }
.nav-menu li ul li a { padding: 10px 18px; font-size: 13px; text-transform: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
.menu-toggle { display: none; background: none; border: none; color: #ffffff; font-size: 24px; cursor: pointer; padding: 10px; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; width: 100%; }
  .nav-menu.active { display: flex; }
  .nav-menu li a { border-bottom-color: transparent; border-left: 3px solid transparent; }
  .nav-menu li a:hover { border-left-color: #E72B99; }
  .nav-menu li ul { position: static; box-shadow: none; border-top: none; }
  .nav-menu li ul li a { padding-left: 36px; }
}

/* ===== TICKER ===== */

.newsflash { background: #1A1A1A; border-top: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.newsflash-inner { display: flex; align-items: center; min-height: 40px; }
.newsflash-badge { background: #E72B99; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 14px; flex-shrink: 0; font-family: 'Oswald', sans-serif; }
.newsflash-track { flex: 1; overflow: hidden; position: relative; margin-left: 16px; }
.newsflash-scroll { display: flex; gap: 40px; animation: newsflash-scroll 30s linear infinite; white-space: nowrap; }
.newsflash-scroll a { color: #ccc; font-size: 13px; }
.newsflash-scroll a:hover { color: #E72B99; }
@keyframes newsflash-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== HERO ===== */

.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto; gap: 16px; margin-bottom: 30px; }
.hero-main { grid-row: 1 / 3; position: relative; border-radius: 6px; overflow: hidden; min-height: 420px; background: #333; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.hero-main .hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.hero-main .hero-category { display: inline-block; padding: 4px 12px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; background: #E72B99; }
.hero-main .hero-title { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 8px; font-family: 'Oswald', sans-serif; }
.hero-main .hero-title a { color: #fff; } .hero-main .hero-title a:hover { color: #E72B99; }
.hero-main .hero-date { font-size: 12px; color: rgba(255,255,255,0.7); }
.hero-side { position: relative; border-radius: 6px; overflow: hidden; min-height: 200px; background: #333; }
.hero-side img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.hero-side .hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.hero-side .hero-category { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; margin-bottom: 6px; background: #E72B99; }
.hero-side .hero-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; font-family: 'Oswald', sans-serif; }
.hero-side .hero-title a { color: #fff; } .hero-side .hero-title a:hover { color: #E72B99; }
.hero-side .hero-date { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.hero-side .no-thumb-hero, .hero-main .no-thumb-hero { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; background: #E72B99; color: white; font-size: 60px; font-weight: 700; opacity: 0.5; }
.hero-side .no-thumb-hero { font-size: 40px; }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } .hero-main { grid-row: auto; min-height: 280px; } .hero-side { min-height: 180px; } }




/* ===== POST CARDS ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card { background: #ffffff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.post-card .card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #e0e0e0; }
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; transform: scale(1); }
.post-card:hover .card-thumb img { transform: scale(1.05); }
.post-card .card-thumb .no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #E72B99; color: white; font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; opacity: 0.6; }
.post-card .card-body { padding: 18px; }
.post-card .card-category { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.post-card .card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post-card .card-title a { color: #111; } .post-card .card-title a:hover { color: #E72B99; }
.post-card .card-excerpt { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .card-meta { font-size: 12px; color: #999; display: flex; align-items: center; gap: 12px; }

/* Category colors */
.cat-color-1 { background: #E72B99; }
.cat-color-2 { background: #3498db; }
.cat-color-3 { background: #27ae60; }
.cat-color-4 { background: #f1c40f; }
.cat-color-5 { background: #8e44ad; }
.cat-color-6 { background: #e67e22; }
.cat-color-7 { background: #16a085; }
.cat-color-8 { background: #c0392b; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; margin-bottom: 24px; border-bottom: 3px solid #E72B99; padding-bottom: 10px; }
.section-title { font-size: 20px; font-weight: 700; color: #111; text-transform: uppercase; }

/* ===== SIDEBAR ===== */
.widget { background: #fff; border-radius: 6px; padding: 22px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.widget-title { font-size: 16px; font-weight: 700; color: #111; text-transform: uppercase; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 3px solid #E72B99; }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #111; display: flex; justify-content: space-between; }
.widget ul li a:hover { color: #E72B99; }
.widget ul li .count { color: #999; font-size: 12px; }
.widget-recent-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.widget-recent-post:last-child { border-bottom: none; }
.widget-recent-post .wrp-thumb { width: 70px; height: 70px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #e0e0e0; }
.widget-recent-post .wrp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-post .wrp-content { flex: 1; min-width: 0; }
.widget-recent-post .wrp-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.widget-recent-post .wrp-title a { color: #111; } .widget-recent-post .wrp-title a:hover { color: #E72B99; }
.widget-recent-post .wrp-date { font-size: 11px; color: #999; }

/* ===== SINGLE POST ===== */
.single-post-content { background: #fff; border-radius: 6px; padding: 36px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.single-post-header { margin-bottom: 24px; }
.single-post-header .post-category { display: inline-block; padding: 4px 14px; border-radius: 3px; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; margin-bottom: 16px; }
.single-post-header h1 { font-size: 32px; line-height: 1.3; margin-bottom: 16px; }
.single-post-header .post-meta { font-size: 14px; color: #999; display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.single-featured-image { margin-bottom: 24px; border-radius: 6px; overflow: hidden; }
.single-featured-image img { width: 100%; }
.entry-content { font-size: 17px; line-height: 1.8; color: #333; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { font-size: 26px; margin: 1.5em 0 0.8em; }
.entry-content h3 { font-size: 22px; margin: 1.3em 0 0.6em; }
.entry-content h4 { font-size: 18px; margin: 1.2em 0 0.5em; }
.entry-content blockquote { border-left: 4px solid #E72B99; padding: 16px 24px; margin: 1.5em 0; background: rgba(0,0,0,0.02); font-style: italic; font-size: 18px; }
.entry-content ul, .entry-content ol { margin: 1em 0; padding-left: 2em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { border-radius: 6px; margin: 1em 0; }
.entry-content a { color: #E72B99; text-decoration: underline; }
.entry-content pre { background: #212121; color: #fff; padding: 20px; border-radius: 6px; overflow-x: auto; font-size: 14px; margin: 1.5em 0; }
.entry-content code { background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 3px; font-size: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid #eee; text-align: left; }
.entry-content th { background: #f5f5f5; font-weight: 700; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 500; background: #fff; color: #111; border: 1px solid #eee; transition: all 0.2s; }
.pagination a:hover { background: #E72B99; color: #fff; border-color: #E72B99; }
.pagination .current { background: #E72B99; color: #fff; border-color: #E72B99; }

/* ===== FOOTER ===== */
.site-footer { background: #1A1A1A; color: #999; margin-top: 40px; }
.footer-links { padding: 30px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links a { color: #ccc; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: #E72B99; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: #666; }
.footer-bottom a { color: #E72B99; }

/* ===== ARCHIVE / SEARCH HEADER ===== */
.archive-header { background: #fff; border-radius: 6px; padding: 24px 30px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.archive-header h1 { font-size: 24px; margin-bottom: 4px; }
.archive-header p { color: #999; font-size: 14px; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 80px 20px; background: #fff; border-radius: 6px; }
.error-404 h1 { font-size: 120px; color: #E72B99; line-height: 1; margin-bottom: 16px; }
.error-404 h2 { font-size: 28px; margin-bottom: 16px; }
.error-404 p { font-size: 16px; color: #999; margin-bottom: 24px; }
.error-404 .btn { display: inline-block; padding: 12px 28px; background: #E72B99; color: #fff; border-radius: 4px; font-weight: 700; }
.error-404 .btn:hover { background: #c42082; color: #fff; }

/* ===== COMMENTS ===== */
.comments-area { background: #fff; border-radius: 6px; padding: 30px; margin-top: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.comments-area h2 { font-size: 22px; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid #eee; }
.comment-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.comment-meta .fn { font-weight: 700; color: #111; }
.comment-content p { font-size: 15px; margin-bottom: 8px; }
.comment-reply-link { font-size: 13px; color: #E72B99; font-weight: 700; }
.comment-respond { margin-top: 24px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #eee; border-radius: 4px; font-size: 14px; margin-bottom: 12px; font-family: 'Open Sans', sans-serif; }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit { background: #E72B99; color: #fff; border: none; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Open Sans', sans-serif; }
.comment-form .submit:hover { background: #c42082; }

/* ===== MISC ===== */
.breadcrumbs { font-size: 13px; color: #999; padding: 16px 0; }
.breadcrumbs a { color: #E72B99; }
.breadcrumbs .sep { margin: 0 8px; }
.no-results { text-align: center; padding: 60px 20px; background: #fff; border-radius: 6px; }
.no-results h2 { margin-bottom: 12px; }
.no-results p { color: #999; }
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 10px 14px; border: 1px solid #eee; border-radius: 4px; font-size: 14px; }
.search-form .search-submit { background: #E72B99; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-block-image { margin: 1.5em 0; }
.post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; }
.post-tags a { display: inline-block; background: #f5f5f5; color: #666; padding: 4px 12px; border-radius: 3px; font-size: 12px; margin: 4px 4px 4px 0; transition: all 0.2s; }
.post-tags a:hover { background: #E72B99; color: #fff; }
