/*
Theme Name: YahooStyle
Theme URI: https://example.com
Author: BusinessToMark
Description: A compact, dense tech-news WordPress theme inspired by Yahoo Tech's layout - a mega-menu category navigation, a simple Today in Tech headline list, per-category sections with thumbnails, and single-post pages with a full author byline (avatar, Follow button, role, timestamp), clear blue in-article links, and a More From [Site] list below the article. Fully portable - no site name or category is hardcoded.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: yahoostyle
*/

:root{
  --yt-purple:#6001d2;
  --yt-black:#232a31;
  --yt-gray:#6e7780;
  --yt-border:#e8e8e8;
  --yt-font: -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;}
body{margin:0;font-family:var(--yt-font);color:var(--yt-black);background:#fff;}
a{color:inherit;text-decoration:none;}
.container{max-width:1000px;margin:0 auto;padding:0 20px;}

/* ---- Header ---- */
.yt-header{border-bottom:1px solid var(--yt-border);padding:16px 0;}
.yt-header-inner{display:flex;align-items:center;justify-content:space-between;}
.yt-logo{font-size:22px;font-weight:800;}
.yt-logo span{color:var(--yt-purple);}
.yt-search{background:none;border:none;font-size:16px;cursor:pointer;}

/* ---- Nav with mega-menu ---- */
.yt-nav{border-bottom:1px solid var(--yt-border);position:relative;}
.yt-nav-list{display:flex;gap:0;list-style:none;margin:0;padding:0;overflow-x:auto;}
.yt-nav-list>li{position:relative;}
.yt-nav-list>li>a{display:block;padding:12px 14px;font-size:13px;font-weight:700;color:var(--yt-black);white-space:nowrap;}
.yt-nav-list>li:hover>a{color:var(--yt-purple);}
.yt-submenu{display:none;position:absolute;top:100%;left:0;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.12);min-width:200px;z-index:50;padding:8px 0;border-radius:4px;}
.yt-nav-list>li:hover .yt-submenu{display:block;}
.yt-submenu a{display:block;padding:9px 16px;font-size:13px;font-weight:500;color:var(--yt-black);}
.yt-submenu a:hover{background:#f7f5fc;color:var(--yt-purple);}

/* ---- Today in Tech: simple list ---- */
.yt-section-title{font-size:16px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;margin:26px 0 14px;padding-bottom:10px;border-bottom:2px solid var(--yt-black);}
.yt-simple-list{display:flex;flex-direction:column;}
.yt-simple-item{padding:11px 0;border-bottom:1px solid var(--yt-border);font-size:15px;font-weight:700;line-height:1.35;}
.yt-simple-item:hover{color:var(--yt-purple);}
.yt-simple-item span{display:block;font-size:12px;color:var(--yt-gray);font-weight:600;margin-top:3px;}

/* ---- Category section: thumbnail + headline + source ---- */
.yt-cat-section{margin-bottom:30px;}
.yt-cat-list{display:flex;flex-direction:column;}
.yt-cat-item{display:flex;gap:14px;padding:13px 0;border-bottom:1px solid var(--yt-border);align-items:flex-start;}
.yt-cat-thumb{width:90px;height:64px;object-fit:cover;border-radius:4px;flex-shrink:0;}
.yt-cat-body h4{font-size:14.5px;font-weight:700;line-height:1.32;margin:0 0 5px;}
.yt-cat-item:hover h4{color:var(--yt-purple);}
.yt-cat-source{font-size:12px;color:var(--yt-gray);font-weight:600;}

.yt-footer{border-top:1px solid var(--yt-border);padding:22px 0;margin-top:30px;text-align:center;font-size:12px;color:var(--yt-gray);}

@media(max-width:700px){
  .yt-nav-list{gap:0;}
}

/* ---------- Single article page ---------- */
.yt-breadcrumb{font-size:13px;color:var(--yt-gray);margin:18px 0 12px;}
.yt-breadcrumb a:hover{color:var(--yt-purple);}
.yt-article h1{font-size:30px;font-weight:800;line-height:1.2;margin:0 0 10px;}
.yt-article-deck{font-size:17px;color:#3d3d3d;font-weight:500;line-height:1.4;margin:0 0 18px;}
.yt-byline{display:flex;align-items:center;gap:10px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--yt-border);}
.yt-byline img{width:40px;height:40px;border-radius:50%;background:#ccc;}
.yt-byline-name{font-size:14px;font-weight:800;}
.yt-follow-btn{border:1px solid var(--yt-purple);color:var(--yt-purple);background:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:14px;margin-left:8px;cursor:pointer;}
.yt-byline-meta{font-size:12.5px;color:var(--yt-gray);}
.yt-article-img{width:100%;height:420px;object-fit:cover;border-radius:6px;}
.yt-img-caption{font-size:12.5px;color:var(--yt-gray);font-style:italic;margin:8px 0 20px;}
.yt-article-body{font-size:17px;line-height:1.7;color:#1a1a1a;}
.yt-article-body p{margin:0 0 18px;}

/* ---- More from [Site]: flat list below article, NOT a sidebar ---- */
.yt-morefrom{margin-top:36px;padding-top:20px;border-top:3px solid var(--yt-black);}
.yt-morefrom-title{font-size:15px;font-weight:800;text-transform:uppercase;margin-bottom:16px;}
.yt-more-item{display:block;padding:13px 0;border-bottom:1px solid var(--yt-border);}
.yt-more-item h5{font-size:15px;font-weight:700;line-height:1.32;margin:0 0 4px;}
.yt-more-item:hover h5{color:var(--yt-purple);}
.yt-more-item p{font-size:13px;color:#555;margin:0 0 4px;}
.yt-more-source{font-size:11.5px;color:var(--yt-gray);font-weight:700;}

/* ---- Links inside article body: classic clear blue, underlined ---- */
.yt-article-body a{color:#1a73e8;text-decoration:underline;font-weight:500;}
.yt-article-body a:hover{color:#0d47a1;}

/* ---- Related-posts layout: More From list (left) + ad sidebar (right) ---- */
.yt-morefrom-layout{display:grid;grid-template-columns:2.2fr 1fr;gap:32px;align-items:start;margin-top:36px;padding-top:20px;border-top:3px solid var(--yt-black);}
.yt-morefrom-layout .yt-morefrom{margin-top:0;padding-top:0;border-top:none;}
.yt-ad-slot{background:#fafafa;border:1px dashed #ccc;border-radius:6px;display:flex;align-items:center;justify-content:center;min-height:250px;color:#999;font-size:13px;text-align:center;padding:10px;}

@media(max-width:800px){
  .yt-morefrom-layout{grid-template-columns:1fr;}
}

/* ---- Latest News Today: list (left) + Business featured image (right) ---- */
.yt-today-layout{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;}
.yt-today-layout .yt-simple-list{border-right:1px solid var(--yt-border);padding-right:24px;}
.yt-today-featured{position:relative;display:block;border-radius:4px;overflow:hidden;margin-left:24px;min-height:100%;}
.yt-today-featured-img{width:100%;height:100%;min-height:280px;object-fit:cover;display:block;}
.yt-today-featured-overlay{position:absolute;left:0;right:0;bottom:0;padding:18px;background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,.05));}
.yt-today-featured-tag{display:inline-block;background:var(--yt-purple);color:#fff;font-size:10.5px;font-weight:800;text-transform:uppercase;padding:3px 9px;border-radius:2px;margin-bottom:8px;}
.yt-today-featured-overlay h3{color:#fff;font-size:19px;font-weight:800;line-height:1.28;margin:0;}

@media(max-width:800px){
  .yt-today-layout{grid-template-columns:1fr;}
  .yt-today-layout .yt-simple-list{border-right:none;padding-right:0;border-bottom:1px solid var(--yt-border);padding-bottom:10px;margin-bottom:16px;}
  .yt-today-featured{margin-left:0;}
}

/* ---- Description line under category-list post titles ---- */
.yt-cat-dek{font-size:13px;color:#555;line-height:1.45;margin:4px 0 6px;}

/* ---- "More Article" button next to each category section title ---- */
.yt-section-title-row{display:flex;justify-content:space-between;align-items:center;}
.yt-more-article-btn{font-size:12.5px;font-weight:800;color:var(--yt-purple);border:1px solid var(--yt-purple);padding:5px 14px;border-radius:16px;text-transform:none;letter-spacing:0;}
.yt-more-article-btn:hover{background:var(--yt-purple);color:#fff;}
