/*
Theme Name: YugaTech 2026
Theme URI: https://www.yugatech.com
Author: YugaTech Team
Author URI: https://www.yugatech.com
Description: Next-generation high-performance WordPress theme for YugaTech. Features AI-powered instant search, infinite scroll, custom ad management, comprehensive schema markup, and optimized for PageSpeed 100.
Version: 1.5.41
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ygt-2026
Tags: news, tech, magazine, three-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
YugaTech 2026 - Built for speed, SEO, and user experience.
*/
/* ==========================================================================
CSS DESIGN TOKENS (Based on Reference Images)
========================================================================== */
:root {
/* === BRAND COLORS === */
--ygt-primary: #f97316;
--ygt-primary-dark: #ea580c;
--ygt-primary-light: #fb923c;
/* === BACKGROUNDS === */
--ygt-bg: #ffffff;
--ygt-bg-alt: #f5f5f5;
--ygt-bg-sidebar: #fafafa;
--ygt-bg-footer: #1a1a1a;
/* === TEXT COLORS === */
--ygt-text: #1a1a1a;
--ygt-text-secondary: #4b5563;
--ygt-text-muted: #6b7280;
--ygt-text-light: #9ca3af;
--ygt-text-inverse: #ffffff;
/* === BORDERS === */
--ygt-border: #e5e5e5;
--ygt-border-light: #f0f0f0;
/* === BORDER RADIUS (No Sharp Corners) === */
--ygt-radius-sm: 5px;
--ygt-radius: 8px;
--ygt-radius-lg: 10px;
/* === TYPOGRAPHY (Matching yugatech.com) === */
--ygt-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
/* === LAYOUT === */
--ygt-max-width: 1200px;
--ygt-gap: 20px;
}
/* ==========================================================================
CSS RESET
========================================================================== */
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
}
html {
font-size: 15px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--ygt-font-primary);
font-size: 15px;
font-weight: 400;
line-height: 1.6;
color: var(--ygt-text);
background: var(--ygt-bg);
}
img {
display: block;
max-width: 100%;
height: auto;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
color: var(--ygt-primary);
}
ul,
ol {
list-style: none;
}
h1 {
font-size: 2.8rem;
font-weight: 700;
line-height: 1.2;
}
h2 {
font-size: 1.5rem;
font-weight: 700;
line-height: 1.3;
}
h3 {
font-size: 1.25rem;
font-weight: 700;
line-height: 1.4;
}
h4,
h5,
h6 {
font-weight: 600;
line-height: 1.4;
}
/* ==========================================================================
HEADER (Clean Design - Matching yugatech.com)
========================================================================== */
.ygt-header {
background: var(--ygt-bg);
}
/* Top Bar */
.ygt-header__topbar {
background: var(--ygt-bg-alt);
padding: 8px 0;
}
.ygt-header__topbar-container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
display: flex;
justify-content: space-between;
align-items: center;
}
.ygt-header__social {
display: flex;
gap: 12px;
}
.ygt-header__social a {
color: var(--ygt-text-muted);
transition: color 0.2s;
}
.ygt-header__social a:hover {
color: var(--ygt-primary);
}
.ygt-header__actions {
display: flex;
gap: 10px;
}
.ygt-header__action-btn {
padding: 6px 14px;
background: var(--ygt-primary);
color: var(--ygt-text-inverse);
font-size: 12px;
font-weight: 600;
border-radius: var(--ygt-radius-sm);
transition: background 0.2s;
}
.ygt-header__action-btn:hover {
background: var(--ygt-primary-dark);
color: var(--ygt-text-inverse);
}
/* Main Header */
.ygt-header__main {
padding: 15px 0;
}
.ygt-header__main-container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
display: flex;
justify-content: center;
align-items: center;
}
.ygt-header__logo-img {
max-height: 40px;
width: auto;
}
/* Search Overlay */
.ygt-search-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
background: var(--ygt-bg);
z-index: 9999;
padding: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
transform: translateY(-100%);
opacity: 0;
transition: all 0.3s ease;
}
.ygt-search-overlay.is-active {
transform: translateY(0);
opacity: 1;
}
.ygt-search-overlay__container {
max-width: 800px;
margin: 0 auto;
}
.ygt-search-overlay__wrapper {
display: flex;
align-items: center;
gap: 15px;
}
.ygt-search-overlay__icon {
color: var(--ygt-text-muted);
}
.ygt-search-overlay__input {
flex: 1;
height: 50px;
padding: 0 20px;
font-size: 18px;
font-family: var(--ygt-font-primary);
border: 2px solid var(--ygt-border);
border-radius: var(--ygt-radius);
background: var(--ygt-bg);
transition: border-color 0.2s;
}
.ygt-search-overlay__input:focus {
outline: none;
border-color: var(--ygt-primary);
}
.ygt-search-overlay__close {
background: none;
border: none;
color: var(--ygt-text-muted);
cursor: pointer;
padding: 8px;
transition: color 0.2s;
}
.ygt-search-overlay__close:hover {
color: var(--ygt-text);
}
.ygt-search-overlay__results {
margin-top: 20px;
max-height: 400px;
overflow-y: auto;
}
.ygt-search-overlay__results.is-visible {
display: block;
}
.ygt-header__top {
display: flex;
align-items: center;
justify-content: space-between;
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 10px 15px;
gap: 20px;
}
/* Logo */
.ygt-header__logo {
flex-shrink: 0;
}
.ygt-header__logo-link {
display: flex;
align-items: center;
font-size: 24px;
font-weight: 700;
letter-spacing: -0.5px;
}
.ygt-header__logo-yuga {
color: var(--ygt-primary);
}
.ygt-header__logo-tech {
color: var(--ygt-text);
}
/* Center Ad Slot */
.ygt-header__ad {
flex: 1;
max-width: 728px;
display: flex;
align-items: center;
justify-content: center;
}
/* Search Box */
.ygt-header__search {
flex-shrink: 0;
width: 200px;
}
.ygt-search {
position: relative;
}
.ygt-search__input {
width: 100%;
height: 36px;
padding: 0 12px;
font-size: 13px;
border: 2px solid var(--ygt-border);
border-radius: 0;
background: var(--ygt-bg);
transition: border-color 0.2s;
}
.ygt-search__input:focus {
outline: none;
border-color: var(--ygt-primary);
}
.ygt-search__input::placeholder {
color: var(--ygt-text-muted);
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.5px;
}
/* Search Results Dropdown */
.ygt-search__results {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
max-height: 400px;
overflow-y: auto;
z-index: 1000;
display: none;
}
.ygt-search__results.is-visible {
display: block;
}
.ygt-search__result {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
}
.ygt-search__result:hover {
background: var(--ygt-bg-alt);
}
.ygt-search__result-image {
width: 50px;
height: 35px;
object-fit: cover;
flex-shrink: 0;
}
.ygt-search__result-title {
font-size: 13px;
font-weight: 500;
line-height: 1.3;
}
.ygt-search__result-meta {
font-size: 11px;
color: var(--ygt-text-muted);
margin-top: 2px;
}
/* ==========================================================================
NEW HEADER LAYOUT (3-Row Structure)
========================================================================== */
/* Row 1: Logo + Ad Slot */
.ygt-header__row-1 {
background: var(--ygt-bg);
padding: 15px 0;
}
.ygt-header__row-1-container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
}
.ygt-header__logo {
flex-shrink: 0;
}
.ygt-header__logo-link {
display: flex;
align-items: center;
}
.ygt-header__logo-img {
max-height: 40px;
width: auto;
}
.ygt-header__ad-slot {
flex: 1;
max-width: 728px;
min-height: 90px;
display: flex;
align-items: center;
justify-content: center;
}
.ygt-header__ad-slot img {
width: 728px;
height: 90px;
object-fit: contain;
}
.ygt-ad-slot--header {
display: flex;
align-items: center;
justify-content: center;
}
/* Row 2: Full-width Search Bar */
.ygt-header__row-2 {
background: var(--ygt-bg);
padding: 0 0 15px;
}
.ygt-header__row-2-container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
}
.ygt-header__search-bar {
position: relative;
width: 100%;
}
.ygt-search-form {
display: flex;
align-items: center;
width: 100%;
position: relative;
}
.ygt-search-form__icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: var(--ygt-text-muted);
pointer-events: none;
}
.ygt-search-form__input {
width: 100%;
height: 48px;
padding: 0 20px 0 50px;
font-size: 16px;
font-family: var(--ygt-font-primary);
border: 2px solid var(--ygt-border);
border-radius: var(--ygt-radius);
background: var(--ygt-bg);
transition: all 0.2s;
}
.ygt-search-form__input:focus {
outline: none;
border-color: var(--ygt-primary);
box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}
.ygt-search-form__input::placeholder {
color: var(--ygt-text-muted);
}
.ygt-search-form__results {
position: absolute;
top: calc(100% + 5px);
left: 0;
right: 0;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
border-radius: var(--ygt-radius);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
max-height: 450px;
overflow-y: auto;
z-index: 1000;
display: none;
}
.ygt-search-form__results.is-visible {
display: block;
}
/* Row 3: Mega Menu Navigation */
.ygt-header__row-3 {
background: var(--ygt-bg);
}
.ygt-header__row-3-container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
}
/* ==========================================================================
MEGA MENU NAVIGATION
========================================================================== */
.ygt-mega-menu {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 8px 0;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}
.ygt-mega-menu__item {
position: relative;
}
.ygt-mega-menu__link {
display: flex;
align-items: center;
gap: 5px;
padding: 0 10px;
color: var(--ygt-text);
font-size: 14px;
font-weight: 500;
transition: color 0.2s;
white-space: nowrap;
}
.ygt-mega-menu__link:hover,
.ygt-mega-menu__item.is-current>.ygt-mega-menu__link {
color: var(--ygt-primary);
}
.ygt-mega-menu__chevron {
transition: transform 0.2s;
}
.ygt-mega-menu__item:hover .ygt-mega-menu__chevron {
transform: rotate(180deg);
}
/* Regular Dropdown (non-mega) */
.ygt-mega-menu__submenu {
position: absolute;
top: 100%;
left: 0;
min-width: 200px;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
border-radius: var(--ygt-radius);
display: none;
z-index: 100;
padding: 8px 0;
list-style: none;
margin: 0;
}
.ygt-mega-menu__item.has-dropdown:hover>.ygt-mega-menu__submenu {
display: block;
}
.ygt-mega-menu__submenu-item {
list-style: none;
}
.ygt-mega-menu__submenu-link {
display: block;
padding: 10px 20px;
font-size: 14px;
color: var(--ygt-text);
transition: all 0.2s;
}
.ygt-mega-menu__submenu-link:hover {
background: var(--ygt-bg-alt);
color: var(--ygt-primary);
}
/* ==========================================================================
MEGA MENU DROPDOWN (Multi-column)
========================================================================== */
.ygt-mega-menu__dropdown {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
width: 100vw;
max-width: 1000px;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
border-radius: var(--ygt-radius-lg);
display: none;
z-index: 1000;
overflow: hidden;
}
.ygt-mega-menu__item.has-mega-menu:hover>.ygt-mega-menu__dropdown {
display: block;
}
.ygt-mega-menu__dropdown-container {
padding: 25px 30px;
}
.ygt-mega-menu__columns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 30px;
}
.ygt-mega-menu__column {
min-width: 0;
}
.ygt-mega-menu__column-title {
font-size: 14px;
font-weight: 700;
color: var(--ygt-text);
margin: 0 0 12px 0;
padding-bottom: 8px;
}
.ygt-mega-menu__column-items {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.ygt-mega-menu__column-item {
list-style: none;
}
.ygt-mega-menu__column-link {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0;
font-size: 14px;
color: var(--ygt-text-secondary);
transition: all 0.2s;
}
.ygt-mega-menu__column-link:hover {
color: var(--ygt-primary);
}
.ygt-mega-menu__arrow {
font-size: 12px;
color: var(--ygt-text-muted);
transition: transform 0.2s;
}
.ygt-mega-menu__column-link:hover .ygt-mega-menu__arrow {
transform: translateX(3px);
color: var(--ygt-primary);
}
/* ==========================================================================
LEGACY NAVIGATION (Keep for backward compatibility)
========================================================================== */
.ygt-nav {
background: var(--ygt-bg);
}
.ygt-nav__container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 12px 15px;
display: flex;
align-items: center;
justify-content: center;
}
.ygt-nav__list {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
}
.ygt-nav__item {
position: relative;
}
.ygt-nav__link {
display: flex;
align-items: center;
gap: 5px;
padding: 16px 18px;
color: var(--ygt-text);
font-size: 14px;
font-weight: 500;
transition: color 0.2s;
}
.ygt-nav__link:hover,
.ygt-nav__item.is-current>.ygt-nav__link {
color: var(--ygt-primary);
}
.ygt-nav__chevron {
transition: transform 0.2s;
}
.ygt-nav__item:hover .ygt-nav__chevron {
transform: rotate(180deg);
}
/* Search Toggle */
.ygt-nav__search-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
margin-left: 15px;
background: none;
border: none;
color: var(--ygt-text);
cursor: pointer;
transition: color 0.2s;
}
.ygt-nav__search-toggle:hover {
color: var(--ygt-primary);
}
/* Dropdown */
.ygt-nav__dropdown {
position: absolute;
top: 100%;
left: 0;
min-width: 200px;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
border-radius: 8px;
display: none;
z-index: 9999;
padding: 8px 0;
}
.ygt-nav__item:hover .ygt-nav__dropdown {
display: block;
}
.ygt-nav__dropdown-link {
display: block;
padding: 10px 20px;
font-size: 14px;
color: var(--ygt-text);
transition: all 0.2s;
}
.ygt-nav__dropdown-link:hover {
background: var(--ygt-bg-alt);
color: var(--ygt-primary);
}
/* ==========================================================================
HEADER RESPONSIVE
========================================================================== */
@media (max-width: 768px) {
/* Row 1: Logo + Mobile Banner Ad - compressed spacing */
.ygt-header__row-1 {
padding: 8px 0;
}
.ygt-header__row-1-container {
flex-direction: column;
gap: 8px;
align-items: center;
}
/* Show mobile header banner ad below logo */
.ygt-header__ad-slot {
max-width: 100%;
width: 100%;
display: block;
}
.ygt-header__ad-slot .widget,
.ygt-header__ad-slot .ygt-ad-slot,
.ygt-header__ad-slot iframe,
.ygt-header__ad-slot img {
max-width: 100%;
height: auto;
margin: 0 auto;
display: block;
}
/* Row 2: Search - compressed spacing */
.ygt-header__row-2 {
padding: 0 0 6px;
}
.ygt-search-form__input {
height: 40px;
font-size: 14px;
}
/* Row 3: Navigation - compressed */
.ygt-header__row-3 {
border-top: 1px solid var(--ygt-border);
}
.ygt-mega-menu {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.ygt-mega-menu::-webkit-scrollbar {
display: none;
}
.ygt-mega-menu__link {
padding: 0 10px;
font-size: 13px;
}
.ygt-mega-menu__dropdown {
position: fixed;
left: 0;
right: 0;
transform: none;
width: 100%;
max-width: 100%;
border-radius: 0;
max-height: 70vh;
overflow-y: auto;
}
.ygt-mega-menu__columns {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
}
/* ==========================================================================
FULL-WIDTH SEARCH BAR (Google-style, below nav)
========================================================================== */
.ygt-search-bar {
background: var(--ygt-bg-alt);
padding: 15px 0;
}
.ygt-search-bar__container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
position: relative;
}
.ygt-search-bar__wrapper {
position: relative;
width: 100%;
}
.ygt-search-bar__icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: var(--ygt-text-muted);
pointer-events: none;
}
.ygt-search-bar__input {
width: 100%;
height: 50px;
padding: 0 20px 0 50px;
font-size: 16px;
font-family: var(--ygt-font-primary);
border: 2px solid var(--ygt-border);
border-radius: 8px;
background: var(--ygt-bg);
transition: all 0.2s;
}
.ygt-search-bar__input:focus {
outline: none;
border-color: var(--ygt-primary);
box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}
.ygt-search-bar__input::placeholder {
color: var(--ygt-text-muted);
}
.ygt-search-bar__results {
position: absolute;
top: calc(100% + 5px);
left: 15px;
right: 15px;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
max-height: 450px;
overflow-y: auto;
z-index: 1000;
display: none;
}
.ygt-search-bar__results.is-visible {
display: block;
}
/* ==========================================================================
MAIN LAYOUT (3-Column Grid: 55% / 25% / 20%)
========================================================================== */
.ygt-container {
max-width: var(--ygt-max-width);
margin: 0 auto;
padding: 0 15px;
}
.ygt-grid {
display: grid;
grid-template-columns: 1fr 280px 220px;
gap: var(--ygt-gap);
padding: 20px 0;
}
.ygt-content {
min-width: 0;
background: var(--ygt-bg);
position: relative;
z-index: 1;
isolation: isolate;
}
.ygt-sidebar-1 {
min-width: 0;
position: sticky;
top: 90px;
align-self: start;
max-height: calc(100vh - 100px);
overflow-y: auto;
}
.ygt-sidebar-2 {
min-width: 0;
}
/* Responsive */
@media (max-width: 1024px) {
.ygt-grid {
grid-template-columns: 1fr 280px;
}
.ygt-sidebar-2 {
display: none;
}
}
@media (max-width: 768px) {
.ygt-grid {
grid-template-columns: 1fr;
}
.ygt-sidebar-1 {
display: none;
}
.ygt-header__ad {
display: block;
width: 100%;
max-width: 100%;
}
.ygt-header__search {
width: 100%;
max-width: 300px;
}
}
/* ==========================================================================
AD SLOTS (Gray Placeholders)
========================================================================== */
.ygt-ad-slot {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
.ygt-ad-slot--leaderboard {
height: 90px;
}
.ygt-ad-slot--rectangle {
height: 250px;
}
.ygt-ad-slot--sidebar {
height: 600px;
}
/* ==========================================================================
FEATURED SECTION (Homepage Top)
========================================================================== */
.ygt-featured {
margin-bottom: 20px;
position: relative;
}
/* Carousel Container */
.ygt-featured--carousel {
position: relative;
}
.ygt-featured__slides {
position: relative;
overflow: hidden;
border-radius: var(--ygt-radius-lg);
background: #1e293b;
}
/* Padding-bottom trick maintains 16:9 ratio without relying on first-child flow */
.ygt-featured__slides::before {
content: '';
display: block;
padding-top: 56.25%;
/* 9 ÷ 16 = 56.25% */
}
/* All slides absolutely stacked, including first child */
.ygt-featured__slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
z-index: 1;
}
/* Active slide is visible */
.ygt-featured__slide--active {
opacity: 1;
visibility: visible;
z-index: 2;
}
.ygt-featured__slide-link {
display: block;
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.ygt-featured__slide-image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
transition: transform 0.5s ease;
}
.ygt-featured__slide:hover .ygt-featured__slide-image {
transform: scale(1.05);
}
.ygt-featured__slide-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 30px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
color: white;
}
.ygt-featured__slide-category {
display: inline-block;
padding: 4px 12px;
background: var(--ygt-primary);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 10px;
border-radius: var(--ygt-radius-sm);
}
.ygt-featured__slide-title {
font-size: 1.75rem;
font-weight: 700;
line-height: 1.3;
margin: 0;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
transition: color 0.2s ease;
}
.ygt-featured__slide:hover .ygt-featured__slide-title {
color: var(--ygt-primary);
}
/* Carousel Dots Navigation */
.ygt-featured__dots {
display: flex;
justify-content: center;
gap: 8px;
padding: 12px 0;
}
.ygt-featured__dot {
width: 10px;
height: 10px;
border-radius: 50%;
border: none;
background: #cbd5e1;
/* Light gray for inactive dots */
cursor: pointer;
transition: all 0.3s ease;
padding: 0;
}
.ygt-featured__dot:hover {
background: #94a3b8;
/* Darker gray on hover */
}
.ygt-featured__dot--active {
background: #f97316;
/* Orange for active dot */
transform: scale(1.2);
}
/* Video Embed Mode */
.ygt-featured--video .ygt-featured__video-wrapper {
position: relative;
padding-bottom: 56.25%;
/* 16:9 aspect ratio */
height: 0;
overflow: hidden;
border-radius: var(--ygt-radius-lg);
background: #000;
}
.ygt-featured--video .ygt-featured__video-wrapper iframe,
.ygt-featured--video .ygt-featured__video-wrapper video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* Video Slide in Carousel — stays stacked like all other slides */
.ygt-featured__slide--video {
position: absolute;
background: #000;
}
.ygt-featured__slide--video .ygt-featured__video-embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.ygt-featured__slide--video .ygt-featured__video-embed iframe,
.ygt-featured__slide--video .ygt-featured__video-embed video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.ygt-featured__slide--video .ygt-featured__slide-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 32px 24px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
z-index: 10;
}
/* Legacy support for single featured (backward compat) */
.ygt-featured__main {
position: relative;
overflow: hidden;
border-radius: var(--ygt-radius-lg);
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
min-height: 200px;
display: block;
}
.ygt-featured__main-image {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.ygt-featured__main-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 20px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
color: white;
}
.ygt-featured__main-category {
display: inline-block;
padding: 4px 10px;
background: var(--ygt-primary);
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 8px;
border-radius: var(--ygt-radius-sm);
}
.ygt-featured__main-title {
font-size: 22px;
font-weight: 700;
line-height: 1.3;
}
.ygt-featured__main-title a {
color: inherit;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.ygt-featured__slide-content {
padding: 20px;
}
.ygt-featured__slide-title {
font-size: 1.25rem;
}
}
/* ==========================================================================
ARTICLE CARDS (List Style - Thumbnail LEFT)
Matching Reference Image Exactly
========================================================================== */
.ygt-article-list {
display: flex;
flex-direction: column;
}
.ygt-card {
display: flex;
gap: 15px;
padding: 15px 0;
position: relative;
}
.ygt-card:first-child {
padding-top: 0;
}
.ygt-card__image {
flex-shrink: 0;
width: 130px;
height: 82px;
overflow: hidden;
border-radius: var(--ygt-radius);
position: relative;
}
.ygt-card__image img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: cover;
border-radius: var(--ygt-radius);
transition: transform 0.3s;
}
.ygt-card:hover .ygt-card__image img {
transform: scale(1.05);
}
.ygt-card__content {
flex: 1;
min-width: 0;
}
.ygt-card__categories {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
margin-bottom: 5px;
}
.ygt-card__categories .ygt-card__category:not(:first-child)::before {
content: '•';
margin-right: 4px;
color: var(--ygt-text-muted);
}
.ygt-card__category {
display: inline-block;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
margin-bottom: 0;
}
.ygt-card__categories .ygt-card__category:first-child {
color: var(--ygt-primary);
}
.ygt-card__categories .ygt-card__category:not(:first-child) {
color: var(--ygt-text-muted);
}
.ygt-card__title {
font-size: 20px;
font-weight: 600;
font-family: 'Inter', sans-serif;
line-height: 1.4;
color: #000000;
margin-bottom: 8px;
}
.ygt-card__title a:hover {
color: var(--ygt-primary);
}
.ygt-card__meta {
display: flex;
align-items: center;
gap: 10px;
font-size: 11px;
color: var(--ygt-text-muted);
}
.ygt-card__comments {
position: absolute;
top: 8px;
right: 8px;
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
color: var(--ygt-text-muted);
text-decoration: none;
}
.ygt-card__comments:hover {
color: var(--ygt-primary);
}
.ygt-card__author {
display: flex;
align-items: center;
gap: 5px;
}
.ygt-card__author img {
width: 20px;
height: 20px;
border-radius: 50%;
}
/* ==========================================================================
VIDEO PLAY BUTTON OVERLAY
========================================================================== */
.ygt-play-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
background: rgba(0, 0, 0, 0.7);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 2;
}
.ygt-play-overlay svg {
width: 24px;
height: 24px;
fill: white;
margin-left: 3px;
/* Visual centering for play icon */
}
.ygt-card:hover .ygt-play-overlay,
.ygt-featured__slide:hover .ygt-play-overlay {
background: var(--ygt-primary);
transform: translate(-50%, -50%) scale(1.1);
}
/* Smaller play button for small cards */
.ygt-card .ygt-play-overlay {
width: 36px;
height: 36px;
}
.ygt-card .ygt-play-overlay svg {
width: 16px;
height: 16px;
margin-left: 2px;
}
/* Larger play button for featured/large items */
.ygt-card--large .ygt-play-overlay,
.ygt-featured .ygt-play-overlay,
.ygt-featured__slide .ygt-play-overlay {
width: 56px;
height: 56px;
}
.ygt-card--large .ygt-play-overlay svg,
.ygt-featured .ygt-play-overlay svg,
.ygt-featured__slide .ygt-play-overlay svg {
width: 28px;
height: 28px;
margin-left: 3px;
}
/* Large Card Variant */
.ygt-card--large .ygt-card__image {
width: 160px;
height: 100px;
}
.ygt-card--large .ygt-card__title {
font-size: 16px;
}
/* ==========================================================================
SIDEBAR WIDGETS
========================================================================== */
.ygt-widget {
margin-bottom: 20px;
}
.ygt-widget__title {
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
color: var(--ygt-text);
padding-bottom: 10px;
margin-bottom: 15px;
}
/* Sidebar List (Simple - No Numbers) */
.ygt-sidebar-list {
display: flex;
flex-direction: column;
}
.ygt-sidebar-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 0;
}
.ygt-sidebar-item:first-child {
padding-top: 0;
}
.ygt-sidebar-item:last-child {
padding-bottom: 0;
}
.ygt-sidebar-item__image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}
.ygt-sidebar-item__content {
flex: 1;
min-width: 0;
}
.ygt-sidebar-item__title {
display: block;
font-size: 13px;
font-weight: 500;
line-height: 1.4;
color: var(--ygt-text);
transition: color 0.2s;
}
.ygt-sidebar-item:hover .ygt-sidebar-item__title {
color: var(--ygt-primary);
}
.ygt-sidebar-item__meta {
display: block;
font-size: 11px;
color: var(--ygt-text-muted);
margin-top: 4px;
}
/* Trophy Rankings for Top Articles */
.ygt-sidebar-item__image-link {
position: relative;
display: block;
flex-shrink: 0;
width: 70px;
height: 50px;
overflow: hidden;
border-radius: 4px;
}
.ygt-rank-trophy {
position: absolute;
top: -5px;
left: -5px;
font-size: 18px;
z-index: 2;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.ygt-rank-trophy--gold {
font-size: 20px;
}
.ygt-rank-trophy--silver {
font-size: 19px;
}
.ygt-rank-trophy--bronze {
font-size: 18px;
}
/* Subtle left border accent for ranked items */
.ygt-sidebar-item--gold {
border-left: 3px solid #FFD700;
padding-left: 10px;
margin-left: -10px;
}
.ygt-sidebar-item--silver {
border-left: 3px solid #C0C0C0;
padding-left: 10px;
margin-left: -10px;
}
.ygt-sidebar-item--bronze {
border-left: 3px solid #CD7F32;
padding-left: 10px;
margin-left: -10px;
}
/* Editors Choice (Sidebar 2) */
.ygt-editors-choice {
text-align: center;
padding: 15px;
background: var(--ygt-bg-alt);
border: 1px solid var(--ygt-border);
}
.ygt-editors-choice__badge {
width: 100%;
max-width: 150px;
margin: 0 auto 10px;
}
.ygt-editors-choice__year {
font-size: 12px;
font-weight: 600;
color: var(--ygt-text-muted);
}
/* ==========================================================================
SINGLE ARTICLE PAGE
========================================================================== */
.ygt-article {
max-width: 100%;
background: var(--ygt-bg);
position: relative;
z-index: 1;
}
.ygt-article__header {
margin-bottom: 20px;
background: var(--ygt-bg);
}
/* Ensure article content has proper background and stacking */
.ygt-article__content {
background: var(--ygt-bg);
position: relative;
z-index: 1;
}
.ygt-article__category {
display: inline-block;
padding: 4px 12px;
background: var(--ygt-primary);
color: var(--ygt-text-inverse);
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 10px;
border-radius: var(--ygt-radius-sm);
}
.ygt-article__title {
font-size: 28px;
font-weight: 700;
line-height: 1.3;
margin-bottom: 15px;
}
.ygt-article__meta {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--ygt-text-muted);
padding-bottom: 10px;
white-space: nowrap;
}
.ygt-article__author {
display: flex;
align-items: center;
gap: 6px;
}
.ygt-article__author img {
width: 30px;
height: 30px;
border-radius: 50%;
}
.ygt-article__author-name {
font-weight: 600;
color: var(--ygt-text);
}
.ygt-article__author-name a {
color: var(--ygt-text);
text-decoration: none;
}
.ygt-article__author-name a:hover {
color: var(--ygt-primary);
}
.ygt-article__author-name::after {
content: '·';
margin: 0 4px;
color: var(--ygt-text-muted);
}
.ygt-article__share {
display: flex;
gap: 8px;
margin-left: auto;
}
.ygt-article__share-btn {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
background: var(--ygt-bg-alt);
border-radius: 4px;
color: var(--ygt-text-muted);
transition: background 0.2s;
}
.ygt-article__share-btn:hover {
background: var(--ygt-primary);
color: var(--ygt-text-inverse);
}
/* ==========================================================================
TTS (TEXT-TO-SPEECH) LISTEN WIDGET (v2.0.0)
Minimal toolbar using browser SpeechSynthesis API.
Voice selector, speed control, progress bar.
========================================================================== */
.ygt-tts {
margin: 16px 0;
background: #f8fafc;
border-radius: var(--ygt-radius);
overflow: hidden;
opacity: 0.95;
transition: opacity 0.2s ease;
position: relative;
}
.ygt-tts:hover {
opacity: 1;
}
.ygt-tts__controls {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
}
.ygt-tts__play,
.ygt-tts__stop {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 50%;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.ygt-tts__play {
background: var(--ygt-primary, #f97316);
color: #ffffff;
}
.ygt-tts__play:hover {
background: #ea580c;
transform: scale(1.05);
}
.ygt-tts__stop {
background: #e2e8f0;
color: #64748b;
}
.ygt-tts__stop:hover {
background: #cbd5e1;
color: #334155;
}
.ygt-tts__status {
font-family: 'Inter', sans-serif;
font-size: 13px;
font-weight: 500;
color: #475569;
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ygt-tts__right {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
margin-left: auto;
}
.ygt-tts__time {
font-family: 'Inter', sans-serif;
font-size: 11px;
font-weight: 500;
color: #94a3b8;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* Voice toggle button (microphone icon) */
.ygt-tts__voice-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid #e2e8f0;
border-radius: 50%;
background: #ffffff;
color: #64748b;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.ygt-tts__voice-toggle:hover {
border-color: var(--ygt-primary, #f97316);
color: var(--ygt-primary, #f97316);
}
.ygt-tts__voice-toggle--active {
background: var(--ygt-primary, #f97316);
border-color: var(--ygt-primary, #f97316);
color: #ffffff;
}
.ygt-tts__speed {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 36px;
height: 24px;
padding: 0 8px;
border: 1px solid #e2e8f0;
border-radius: 12px;
background: #ffffff;
font-family: 'Inter', sans-serif;
font-size: 11px;
font-weight: 600;
color: #64748b;
cursor: pointer;
transition: all 0.2s ease;
}
.ygt-tts__speed:hover {
border-color: var(--ygt-primary, #f97316);
color: var(--ygt-primary, #f97316);
}
/* Voice Panel (expandable) */
.ygt-tts__voice-panel {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease;
background: #f1f5f9;
}
.ygt-tts__voice-panel--open {
max-height: 80px;
padding: 8px 14px 10px;
}
.ygt-tts__voice-wrap {
display: flex;
align-items: center;
gap: 10px;
}
.ygt-tts__voice-label {
font-family: 'Inter', sans-serif;
font-size: 11px;
font-weight: 600;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.5px;
flex-shrink: 0;
}
.ygt-tts__voice-select {
flex: 1;
min-width: 0;
height: 32px;
padding: 0 28px 0 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
background-size: 12px;
font-family: 'Inter', sans-serif;
font-size: 12px;
color: #334155;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
transition: border-color 0.2s ease;
}
.ygt-tts__voice-select:hover,
.ygt-tts__voice-select:focus {
border-color: var(--ygt-primary, #f97316);
outline: none;
}
.ygt-tts__voice-select optgroup {
font-weight: 600;
color: #334155;
font-size: 12px;
}
.ygt-tts__voice-select option {
font-weight: 400;
color: #475569;
padding: 4px;
}
/* Progress bar */
.ygt-tts__progress {
height: 3px;
background: #e2e8f0;
}
.ygt-tts__progress-fill {
height: 100%;
width: 0%;
background: var(--ygt-primary, #f97316);
transition: width 0.25s linear;
border-radius: 0 3px 3px 0;
}
/* ---- LOADING STATE: spinner inside play button ---- */
.ygt-tts__spinner {
width: 16px;
height: 16px;
position: relative;
}
.ygt-tts__spinner > div {
width: 16px;
height: 16px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: #ffffff;
border-radius: 50%;
animation: ygt-tts-spin 0.7s linear infinite;
}
@keyframes ygt-tts-spin {
to { transform: rotate(360deg); }
}
.ygt-tts--loading .ygt-tts__play {
background: var(--ygt-primary, #f97316);
pointer-events: none;
animation: ygt-tts-pulse 1.5s ease-in-out infinite;
}
.ygt-tts--loading .ygt-tts__status {
color: var(--ygt-primary, #f97316);
}
.ygt-tts--loading {
background: #f1f5f9;
}
/* ---- WAVEFORM VISUALIZER ---- */
.ygt-tts__wave {
display: none;
align-items: center;
gap: 2px;
height: 20px;
flex-shrink: 0;
}
.ygt-tts__wave span {
display: block;
width: 3px;
height: 4px;
background: var(--ygt-primary, #f97316);
border-radius: 2px;
transition: height 0.1s ease;
}
/* Show waveform during loading and playing */
.ygt-tts--loading .ygt-tts__wave,
.ygt-tts--playing .ygt-tts__wave {
display: flex;
}
/* Loading: gentle pulse on all bars */
.ygt-tts--loading .ygt-tts__wave span {
animation: ygt-wave-loading 1.2s ease-in-out infinite;
opacity: 0.5;
}
.ygt-tts--loading .ygt-tts__wave span:nth-child(1) { animation-delay: 0s; }
.ygt-tts--loading .ygt-tts__wave span:nth-child(2) { animation-delay: 0.15s; }
.ygt-tts--loading .ygt-tts__wave span:nth-child(3) { animation-delay: 0.3s; }
.ygt-tts--loading .ygt-tts__wave span:nth-child(4) { animation-delay: 0.45s; }
.ygt-tts--loading .ygt-tts__wave span:nth-child(5) { animation-delay: 0.6s; }
@keyframes ygt-wave-loading {
0%, 100% { height: 4px; }
50% { height: 10px; }
}
/* Playing: energetic bounce animation */
.ygt-tts--playing .ygt-tts__wave span {
animation: ygt-wave-bounce 0.8s ease-in-out infinite alternate;
opacity: 1;
}
.ygt-tts--playing .ygt-tts__wave span:nth-child(1) { animation-delay: 0s; animation-duration: 0.5s; }
.ygt-tts--playing .ygt-tts__wave span:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.7s; }
.ygt-tts--playing .ygt-tts__wave span:nth-child(3) { animation-delay: 0.05s; animation-duration: 0.6s; }
.ygt-tts--playing .ygt-tts__wave span:nth-child(4) { animation-delay: 0.15s; animation-duration: 0.8s; }
.ygt-tts--playing .ygt-tts__wave span:nth-child(5) { animation-delay: 0.08s; animation-duration: 0.55s; }
@keyframes ygt-wave-bounce {
0% { height: 4px; }
100% { height: 18px; }
}
/* Paused: show waveform but frozen at mid height */
.ygt-tts--paused .ygt-tts__wave {
display: flex;
}
.ygt-tts--paused .ygt-tts__wave span {
animation: none;
opacity: 0.4;
}
.ygt-tts--paused .ygt-tts__wave span:nth-child(1) { height: 8px; }
.ygt-tts--paused .ygt-tts__wave span:nth-child(2) { height: 12px; }
.ygt-tts--paused .ygt-tts__wave span:nth-child(3) { height: 6px; }
.ygt-tts--paused .ygt-tts__wave span:nth-child(4) { height: 14px; }
.ygt-tts--paused .ygt-tts__wave span:nth-child(5) { height: 9px; }
/* ---- ACTIVE STATES ---- */
/* Playing: elevation + branded status */
.ygt-tts--playing {
background: #f1f5f9;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.ygt-tts--playing .ygt-tts__status {
color: var(--ygt-primary, #f97316);
}
/* Paused: muted button */
.ygt-tts--paused .ygt-tts__play {
background: #64748b;
}
.ygt-tts--paused .ygt-tts__status {
color: #64748b;
}
/* Pulse glow on play button while actively speaking */
.ygt-tts--playing .ygt-tts__play {
animation: ygt-tts-pulse 2s ease-in-out infinite;
}
@keyframes ygt-tts-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3); }
50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}
/* Finished state: brief green flash */
.ygt-tts--finished .ygt-tts__progress-fill {
background: #22c55e;
transition: background 0.3s ease;
}
.ygt-tts--finished .ygt-tts__status {
color: #16a34a;
}
/* Featured Image */
.ygt-article__featured-image {
margin-bottom: 20px;
}
.ygt-article__featured-image img {
width: 100%;
height: auto;
}
/* Article Content - Matching yugatech.com */
.ygt-article__content {
font-size: 18px;
line-height: 1.4;
color: #333333;
}
.ygt-article__content p {
margin-bottom: 20px;
}
.ygt-article__content h2 {
font-size: 26px;
font-weight: 700;
color: #000000;
margin: 35px 0 18px;
}
.ygt-article__content h3 {
font-size: 22px;
font-weight: 700;
color: #000000;
margin: 30px 0 15px;
}
.ygt-article__content h4 {
font-size: 18px;
font-weight: 600;
color: #000000;
margin: 25px 0 12px;
}
.ygt-article__content img {
margin: 25px 0;
max-width: 100%;
height: auto;
border-radius: var(--ygt-radius);
}
/* Full-width Video/Iframe Embeds */
.ygt-article__content iframe,
.ygt-article__content .wp-block-embed,
.ygt-article__content .wp-block-embed__wrapper {
width: 100% !important;
max-width: 100%;
}
.ygt-article__content iframe[src*="youtube"],
.ygt-article__content iframe[src*="youtu.be"],
.ygt-article__content iframe[src*="vimeo"] {
width: 100%;
aspect-ratio: 16 / 9;
height: auto;
border-radius: var(--ygt-radius);
}
.ygt-article__content .wp-block-embed-youtube,
.ygt-article__content .wp-block-embed-vimeo {
margin: 25px 0;
}
.wp-block-embed__wrapper {
position: relative;
padding-bottom: 56.25%;
/* 16:9 */
height: 0;
overflow: hidden;
}
.wp-block-embed__wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.ygt-article__content ul,
.ygt-article__content ol {
margin-bottom: 20px;
padding-left: 25px;
}
.ygt-article__content li {
margin-bottom: 0;
list-style: disc;
}
.ygt-article__content blockquote {
margin: 20px 0;
padding: 14px 18px;
border-left: 3px solid #e91e63;
background: #f9f9f9;
font-style: italic;
font-size: 15px;
line-height: 1.5;
color: #555;
}
/* Tame Gutenberg decorative quote marks */
.ygt-article__content blockquote.wp-block-quote::before,
.ygt-article__content blockquote.wp-block-quote::after,
.ygt-article__content .wp-block-quote::before,
.ygt-article__content .wp-block-quote::after {
font-size: 2em;
line-height: 1;
opacity: 0.25;
}
.ygt-article__content blockquote p {
font-size: inherit;
line-height: inherit;
margin-bottom: 8px;
}
.ygt-article__content blockquote p:last-child {
margin-bottom: 0;
}
/* Mobile Blockquote - Extra Compact */
@media (max-width: 768px) {
.ygt-article__content blockquote {
margin: 14px 0;
padding: 10px 14px;
font-size: 13px;
line-height: 1.45;
border-left-width: 3px;
}
.ygt-article__content blockquote.wp-block-quote::before,
.ygt-article__content blockquote.wp-block-quote::after,
.ygt-article__content .wp-block-quote::before,
.ygt-article__content .wp-block-quote::after {
font-size: 1.5em;
opacity: 0.15;
}
.ygt-article__content blockquote p {
margin-bottom: 6px;
}
}
/* Article Content Links - Visible Hyperlinks */
.ygt-article__content a {
color: var(--ygt-primary);
text-decoration: underline;
text-decoration-color: rgba(233, 30, 99, 0.3);
text-underline-offset: 2px;
transition: all 0.2s ease;
}
.ygt-article__content a:hover {
color: #c2185b;
text-decoration-color: #c2185b;
}
/* Don't underline image links */
.ygt-article__content a:has(img) {
text-decoration: none;
}
/* ============================================
IN-ARTICLE AD WRAPPER STYLES
Side-by-side (2x 300x250) on desktop
Stacked on mobile
============================================ */
.ygt-article-ad-wrapper {
margin: 30px 0;
padding: 15px 0;
clear: both;
}
.ygt-article-ad-container {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}
/* Single ad - centered */
.ygt-article-ad-wrapper--single .ygt-article-ad-container {
justify-content: center;
}
.ygt-article-ad-wrapper--single .ygt-article-ad {
max-width: 336px;
/* Standard ad width */
}
/* Pair of ads - side by side on desktop */
.ygt-article-ad-wrapper--pair .ygt-article-ad-container {
justify-content: center;
}
.ygt-article-ad-wrapper--pair .ygt-article-ad {
flex: 0 0 auto;
max-width: 336px;
}
/* Individual ad styling */
.ygt-article-ad {
text-align: center;
min-height: 250px;
display: flex;
align-items: center;
justify-content: center;
}
.ygt-article-ad img {
max-width: 100%;
height: auto;
}
/* Inline article ads (auto-injected) */
.ygt-article-ad--inline {
margin: 25px auto;
padding: 15px;
background: #f8fafc;
border-radius: var(--ygt-radius);
text-align: center;
max-width: 728px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.ygt-article-ad--inline p {
margin: 0;
display: flex;
justify-content: center;
}
.ygt-article-ad__label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
color: #94a3b8;
margin-bottom: 8px;
text-align: center;
width: 100%;
}
/* Mobile - Keep ads side-by-side on mobile too */
@media (max-width: 768px) {
.ygt-article-ad-container {
flex-direction: row;
/* Side-by-side on mobile */
justify-content: center;
gap: 8px;
/* Smaller gap on mobile */
flex-wrap: nowrap;
}
.ygt-article-ad-wrapper--pair .ygt-article-ad {
max-width: 50%;
/* Each ad takes half width */
width: 50%;
flex: 0 0 48%;
}
.ygt-article-ad-wrapper--single .ygt-article-ad {
max-width: 100%;
width: 100%;
}
.ygt-article-ad {
min-height: auto;
}
.ygt-article-ad img {
max-width: 100%;
height: auto;
}
}
/* Infinite Scroll Ads */
.ygt-infinite-ad {
grid-column: 1 / -1;
/* Full width in grid */
margin: 20px 0;
padding: 20px 0;
text-align: center;
background: #fafafa;
border-radius: 8px;
animation: fadeInAd 0.3s ease;
}
.ygt-infinite-ad-inner {
display: flex;
justify-content: center;
align-items: center;
}
.ygt-infinite-ad-content {
max-width: 100%;
}
.ygt-infinite-ad-content a {
display: block;
}
.ygt-infinite-ad-content img {
max-width: 100%;
height: auto;
cursor: pointer;
}
@keyframes fadeInAd {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Tags */
.ygt-article__tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 30px 0;
padding: 20px 0;
}
.ygt-article__tag {
padding: 6px 14px;
background: var(--ygt-bg-alt);
font-size: 11px;
font-weight: 500;
color: var(--ygt-text-muted);
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.ygt-article__tag:hover {
background: #333;
color: var(--ygt-text-inverse);
}
/* Related Articles */
.ygt-related {
margin-top: 40px;
}
.ygt-related__title {
font-size: 16px;
font-weight: 700;
margin-bottom: 20px;
padding-bottom: 10px;
}
.ygt-related__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.ygt-related__item {
display: block;
}
.ygt-related__item-image {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
margin-bottom: 10px;
border-radius: var(--ygt-radius);
}
.ygt-related__item-title {
font-size: 13px;
font-weight: 600;
line-height: 1.4;
}
.ygt-related__item-title:hover {
color: var(--ygt-primary);
}
/* ==========================================================================
TOPIC-RELATED ARTICLES - Compact Keyword-Driven Links
========================================================================== */
.ygt-topic-related {
margin: 0.75rem 0;
padding: 0.5rem 0.75rem;
background: #f8fafc;
border-left: 2px solid var(--ygt-primary);
border-radius: 0 4px 4px 0;
}
.ygt-topic-related__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.375rem;
padding-bottom: 0.25rem;
border-bottom: 1px solid #e2e8f0;
}
.ygt-topic-related__title {
font-size: 0.6875rem;
font-weight: 600;
color: #475569;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.ygt-topic-related__view-all {
font-size: 0.625rem;
color: var(--ygt-primary);
text-decoration: none;
font-weight: 500;
}
.ygt-topic-related__view-all:hover {
text-decoration: underline;
}
.ygt-topic-related__list {
list-style: none;
margin: 0;
padding: 0;
}
.ygt-topic-related__list li {
display: flex;
align-items: baseline;
gap: 0.375rem;
padding: 0.1875rem 0;
font-size: 0.8125rem;
line-height: 1.35;
border-bottom: 1px dotted #e2e8f0;
}
.ygt-topic-related__list li:last-child {
border-bottom: none;
}
.ygt-topic-related__list li a {
flex: 1;
color: #334155;
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ygt-topic-related__list li a:hover {
color: var(--ygt-primary);
}
.ygt-topic-related__list li span {
flex-shrink: 0;
font-size: 0.625rem;
color: #94a3b8;
}
/* Mobile */
@media (max-width: 768px) {
.ygt-topic-related {
margin: 0.5rem 0;
padding: 0.375rem 0.625rem;
}
.ygt-topic-related__list li {
font-size: 0.75rem;
padding: 0.125rem 0;
}
.ygt-topic-related__list li span {
font-size: 0.5625rem;
}
}
/* ==========================================================================
AUTHOR BOX - Enhanced Design
========================================================================== */
.ygt-author-box {
background: var(--ygt-bg-alt);
border: 1px solid var(--ygt-border);
border-radius: var(--ygt-radius-lg, 12px);
margin: 40px 0;
overflow: hidden;
}
.ygt-author-box__header {
display: block !important;
padding: 12px 24px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-bottom: 1px solid var(--ygt-border);
}
.ygt-author-box__label {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--ygt-text-muted);
}
.ygt-author-box__main {
display: flex !important;
gap: 24px;
padding: 24px;
}
.ygt-author-box__avatar {
display: block !important;
flex-shrink: 0;
width: 96px;
height: 96px;
border-radius: 50%;
overflow: hidden;
border: 3px solid #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ygt-author-box__avatar img,
.ygt-author-box__avatar .ygt-author-box__img,
.ygt-author-box__img {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
width: 100%;
height: 100%;
object-fit: cover;
}
.ygt-author-box__content {
flex: 1;
min-width: 0;
}
.ygt-author-box__info {
display: flex !important;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 8px;
}
.ygt-author-box__name {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
font-size: 18px;
font-weight: 700;
margin: 0;
line-height: 1.3;
}
.ygt-author-box__name a {
color: var(--ygt-text);
text-decoration: none;
}
.ygt-author-box__name a:hover {
color: var(--ygt-primary);
}
.ygt-author-box__role,
.ygt-author-badge {
display: inline-flex !important;
align-items: center;
padding: 4px 10px;
background: var(--ygt-primary);
color: #fff;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
border-radius: 20px;
vertical-align: middle;
line-height: 1;
white-space: nowrap;
}
.ygt-author-badge--sm {
font-size: 9px;
padding: 3px 7px;
}
.ygt-article__author-name .ygt-author-badge {
margin-left: 6px;
}
.ygt-comment__author+.ygt-author-badge {
margin-left: 5px;
}
.ygt-author-box__bio {
font-size: 14px;
line-height: 1.7;
color: var(--ygt-text-secondary);
margin: 0 0 16px;
}
.ygt-author-box__footer {
display: flex !important;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
padding-top: 16px;
border-top: 1px solid var(--ygt-border);
}
.ygt-author-box__stats {
display: flex !important;
gap: 16px;
}
.ygt-author-box__stat {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 500;
color: var(--ygt-text-muted);
}
.ygt-author-box__stat svg {
opacity: 0.7;
}
.ygt-author-box__social {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
gap: 8px;
}
.ygt-author-box__social a {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: var(--ygt-bg);
border: 1px solid var(--ygt-border);
border-radius: 6px;
color: var(--ygt-text-muted);
transition: all 0.2s;
}
.ygt-author-box__social a:hover {
background: var(--ygt-primary);
border-color: var(--ygt-primary);
color: #fff;
transform: translateY(-2px);
}
.ygt-author-box__view-all {
display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;
margin-top: 16px;
font-size: 13px;
font-weight: 600;
color: var(--ygt-primary);
text-decoration: none;
}
.ygt-author-box__view-all:hover {
text-decoration: underline;
}
/* Mobile responsive - compact author box */
@media (max-width: 600px) {
.ygt-author-box {
margin: 20px 0;
}
.ygt-author-box__main {
flex-direction: row;
align-items: flex-start;
text-align: left;
gap: 12px;
padding: 15px;
}
.ygt-author-box__avatar {
width: 56px;
height: 56px;
flex-shrink: 0;
}
.ygt-author-box__content {
min-width: 0;
}
.ygt-author-box__info {
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
.ygt-author-box__name {
font-size: 15px;
}
.ygt-author-box__role {
font-size: 11px;
}
.ygt-author-box__bio {
font-size: 12px;
line-height: 1.4;
margin: 8px 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.ygt-author-box__footer {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.ygt-author-box__stats {
font-size: 11px;
}
.ygt-author-box__social {
gap: 6px;
}
.ygt-author-box__social a {
width: 28px;
height: 28px;
}
.ygt-author-box__view-all {
font-size: 12px;
margin-top: 8px;
}
}
/* ==========================================================================
PREVIOUS / NEXT ARTICLE NAVIGATION
========================================================================== */
.ygt-post-nav {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin: 40px 0;
padding: 25px 0;
}
.ygt-post-nav__item {
min-width: 0;
}
.ygt-post-nav__item--next {
text-align: right;
}
.ygt-post-nav__link {
display: block;
}
.ygt-post-nav__label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 500;
color: var(--ygt-text-muted);
text-transform: uppercase;
margin-bottom: 8px;
}
.ygt-post-nav__item--next .ygt-post-nav__label {
justify-content: flex-end;
}
.ygt-post-nav__title {
display: block;
font-size: 15px;
font-weight: 600;
color: var(--ygt-text);
line-height: 1.4;
transition: color 0.2s;
}
.ygt-post-nav__link:hover .ygt-post-nav__title {
color: var(--ygt-primary);
}
/* ==========================================================================
COMMENTS
========================================================================== */
.ygt-comments {
margin-top: 40px;
padding-top: 30px;
border-top: 1px solid var(--ygt-border);
}
.ygt-comments__title {
font-size: 18px;
font-weight: 700;
margin-bottom: 25px;
}
.ygt-comment-form {
background: var(--ygt-bg-alt);
padding: 25px;
border-radius: 8px;
margin-bottom: 30px;
}
.ygt-comment-form__title {
font-size: 16px;
font-weight: 600;
margin-bottom: 15px;
}
.ygt-comment-form__logged-in {
font-size: 13px;
color: var(--ygt-text-muted);
margin-bottom: 15px;
}
.ygt-comment-form__logged-in a {
color: var(--ygt-primary);
}
.ygt-comment-form__field textarea {
width: 100%;
min-height: 120px;
padding: 15px;
border: 1px solid var(--ygt-border);
border-radius: 6px;
font-family: var(--ygt-font-primary);
font-size: 15px;
line-height: 1.6;
resize: vertical;
background: var(--ygt-bg);
}
.ygt-comment-form__field textarea:focus {
outline: none;
border-color: var(--ygt-primary);
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
/* Input fields (Name, Mobile Number) */
.ygt-comment-form__field input[type="text"],
.ygt-comment-form__field input[type="tel"],
.ygt-comment-form__field input[type="email"] {
width: 100%;
padding: 12px 15px;
border: 1px solid var(--ygt-border);
border-radius: 6px;
font-family: var(--ygt-font-primary);
font-size: 15px;
background: var(--ygt-bg);
color: var(--ygt-text);
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
margin-bottom: 12px;
}
.ygt-comment-form__field input[type="text"]::placeholder,
.ygt-comment-form__field input[type="tel"]::placeholder,
.ygt-comment-form__field input[type="email"]::placeholder {
color: var(--ygt-text-muted);
font-style: italic;
}
.ygt-comment-form__field input[type="text"]:focus,
.ygt-comment-form__field input[type="tel"]:focus,
.ygt-comment-form__field input[type="email"]:focus {
outline: none;
border-color: var(--ygt-primary);
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.ygt-comment-form__submit {
margin-top: 15px;
padding: 12px 30px;
background: var(--ygt-primary);
color: var(--ygt-text-inverse);
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.ygt-comment-form__submit:hover {
background: var(--ygt-primary-dark);
}
/* Comment Form Input Fields - WordPress Default */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-phone {
margin-bottom: 15px;
}
.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-phone label {
display: block;
font-size: 14px;
font-weight: 600;
color: var(--ygt-text);
margin-bottom: 6px;
}
.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-phone input {
width: 100%;
padding: 12px 15px;
border: 1px solid var(--ygt-border);
border-radius: 6px;
font-family: var(--ygt-font-primary);
font-size: 15px;
background: var(--ygt-bg);
transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus,
.comment-form-phone input:focus {
outline: none;
border-color: var(--ygt-primary);
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
/* Comment form cookies checkbox */
.comment-form-cookies-consent {
display: flex;
align-items: flex-start;
gap: 10px;
margin: 15px 0;
font-size: 13px;
color: var(--ygt-text-muted);
}
.comment-form-cookies-consent input[type="checkbox"] {
width: 18px;
height: 18px;
margin-top: 2px;
accent-color: var(--ygt-primary);
}
/* Comment respond wrapper */
#respond {
margin-top: 30px;
}
#respond .comment-reply-title {
font-size: 18px;
font-weight: 700;
color: var(--ygt-text);
margin-bottom: 20px;
}
/* Form row layout */
.comment-form {
display: flex;
flex-direction: column;
}
.comment-form p {
margin: 0;
}
.comment-form .comment-form-comment {
margin-bottom: 20px;
}
.comment-form .form-submit {
margin-top: 10px;
}
.comment-form .form-submit input[type="submit"] {
padding: 12px 30px;
background: var(--ygt-primary);
color: white;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.comment-form .form-submit input[type="submit"]:hover {
background: var(--ygt-primary-dark);
}
/* Comments List */
.ygt-comments__list {
display: flex;
flex-direction: column;
gap: 20px;
}
.ygt-comment {
display: flex;
gap: 15px;
padding: 20px 0;
}
.ygt-comment__avatar {
flex-shrink: 0;
}
.ygt-comment__avatar img {
width: 50px;
height: 50px;
border-radius: 50%;
}
.ygt-comment__content {
flex: 1;
min-width: 0;
}
.ygt-comment__header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.ygt-comment__author {
font-weight: 600;
font-size: 14px;
}
.ygt-comment__date {
font-size: 12px;
color: var(--ygt-text-muted);
}
.ygt-comment__text {
font-size: 14px;
line-height: 1.6;
color: var(--ygt-text-secondary);
}
.ygt-comment__text p {
margin-bottom: 10px;
}
.ygt-comment__text p:last-child {
margin-bottom: 0;
}
.ygt-comment__reply {
margin-top: 10px;
}
.ygt-comment__reply a {
font-size: 12px;
font-weight: 500;
color: var(--ygt-primary);
}
/* ==========================================================================
PAGINATION (Legacy - See full styles at line ~3769)
========================================================================== */
/* Moved to consolidated section below */
/* Infinite Scroll Loading */
.ygt-loading {
display: flex;
align-items: center;
justify-content: center;
padding: 30px 0;
}
.ygt-loading__spinner {
width: 30px;
height: 30px;
border: 3px solid var(--ygt-border);
border-top-color: var(--ygt-primary);
border-radius: 50%;
animation: ygt-spin 0.8s linear infinite;
}
@keyframes ygt-spin {
to {
transform: rotate(360deg);
}
}
/* ==========================================================================
FOOTER (Dark - Matching Reference yugatech.com)
========================================================================== */
.ygt-footer {
background: #1a1a1a;
color: #fff;
padding: 50px 0 30px;
margin-top: 40px;
}
.ygt-footer__container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.ygt-footer__widgets {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 40px;
}
/* Column Styles */
.ygt-footer__column {
display: flex;
flex-direction: column;
gap: 30px;
}
.ygt-footer__column--about {
padding-right: 20px;
}
/* Logo */
.ygt-footer__logo {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.ygt-footer__logo-icon {
width: 40px;
height: 40px;
}
.ygt-footer__logo-text {
font-size: 28px;
font-weight: 800;
letter-spacing: -0.5px;
}
.ygt-footer__logo-yuga {
color: #F97316;
}
.ygt-footer__logo-tech {
color: #9CA3AF;
}
/* About Text */
.ygt-footer__about {
font-size: 13px;
color: #9CA3AF;
line-height: 1.7;
margin-bottom: 20px;
}
/* Navigation Links (bullet list) */
.ygt-footer__nav-links {
list-style: disc;
padding-left: 20px;
margin: 0;
}
.ygt-footer__nav-links li {
margin-bottom: 8px;
}
.ygt-footer__nav-links a {
font-size: 13px;
color: #F97316;
transition: color 0.2s;
}
.ygt-footer__nav-links a:hover {
color: #FB923C;
}
/* Section Styles */
.ygt-footer__section {
margin-bottom: 0;
}
.ygt-footer__section-title {
display: inline-block;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #fff;
background: transparent;
padding: 10px 30px;
margin: 0 0 15px 0;
border: 2px solid #F97316;
border-radius: 25px;
text-align: center;
}
/* Brand Tags (comma-separated) */
.ygt-footer__brand-tags {
font-size: 13px;
color: #9CA3AF;
line-height: 1.8;
}
.ygt-footer__brand-tags a {
color: #9CA3AF;
transition: color 0.2s;
}
.ygt-footer__brand-tags a:hover {
color: #F97316;
}
/* Link Lists */
.ygt-footer__link-list {
list-style: none;
padding: 0;
margin: 0;
}
.ygt-footer__link-list li {
margin-bottom: 8px;
}
.ygt-footer__link-list a {
font-size: 13px;
color: #9CA3AF;
transition: color 0.2s;
line-height: 1.5;
}
.ygt-footer__link-list a:hover {
color: #F97316;
}
/* Highlighted Links (orange) */
.ygt-footer__link-list--highlight a {
color: #F97316;
}
.ygt-footer__link-list--highlight a:hover {
color: #FB923C;
}
/* Category count badge */
.ygt-footer__count {
font-size: 11px;
color: #6B7280;
margin-left: 4px;
}
/* Inline list (years, etc) */
.ygt-footer__link-list--inline {
display: flex;
flex-wrap: wrap;
gap: 8px 16px;
}
.ygt-footer__link-list--inline li {
margin-bottom: 0;
}
.ygt-footer__link-list--inline a {
padding: 4px 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
font-weight: 500;
}
.ygt-footer__link-list--inline a:hover {
background: rgba(249, 115, 22, 0.15);
}
/* Articles list with truncation */
.ygt-footer__link-list--articles li {
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ygt-footer__link-list--articles li:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.ygt-footer__link-list--articles a {
display: block;
line-height: 1.4;
}
/* Widget Items from WP */
.ygt-footer__widget-item {
margin-bottom: 20px;
}
.ygt-footer__widget-title {
display: inline-block;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #fff;
padding: 10px 30px;
margin: 0 0 15px 0;
border: 2px solid #F97316;
border-radius: 25px;
}
/* Bottom Bar */
.ygt-footer__bottom {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 30px;
margin-top: 40px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ygt-footer__copyright {
font-size: 13px;
color: #9CA3AF;
line-height: 1.6;
}
/* Social Icons */
.ygt-footer__social {
display: flex;
gap: 8px;
}
.ygt-footer__social a {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
color: #fff;
transition: transform 0.2s, opacity 0.2s;
}
.ygt-footer__social a:hover {
transform: scale(1.1);
opacity: 0.9;
}
/* Social Icon Colors */
.ygt-footer__social-tiktok {
background: #000;
border: 1px solid #333;
}
.ygt-footer__social-x {
background: #000;
border: 1px solid #333;
}
.ygt-footer__social-instagram {
background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.ygt-footer__social-youtube {
background: #FF0000;
}
/* Responsive Footer */
@media (max-width: 992px) {
.ygt-footer__widgets {
grid-template-columns: 1fr 1fr;
gap: 30px;
}
}
@media (max-width: 768px) {
.ygt-footer__widgets {
grid-template-columns: 1fr;
}
.ygt-footer__bottom {
flex-direction: column;
gap: 20px;
text-align: center;
}
.ygt-footer__section-title {
padding: 8px 20px;
font-size: 11px;
}
}
/* ==========================================================================
UTILITY CLASSES
========================================================================== */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
/* ==========================================================================
MODERN ARCHIVE HEADER
========================================================================== */
.ygt-archive-header {
padding: 15px 0;
margin-bottom: 15px;
}
.ygt-archive-header__inner {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.ygt-archive-header__label {
display: inline-block;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--ygt-primary);
background: rgba(249, 115, 22, 0.1);
padding: 4px 10px;
border-radius: var(--ygt-radius-sm);
}
.ygt-archive-header__title {
font-size: 20px;
font-weight: 700;
color: var(--ygt-text);
margin: 0;
line-height: 1.2;
}
.ygt-archive-header__desc {
color: var(--ygt-text-muted);
font-size: 13px;
line-height: 1.4;
margin: 0;
}
.ygt-archive-header__stats {
display: flex;
align-items: center;
gap: 6px;
margin-left: auto;
}
.ygt-archive-header__stat {
display: flex;
align-items: center;
gap: 4px;
}
.ygt-archive-header__stat-value {
font-size: 14px;
font-weight: 600;
color: var(--ygt-text-muted);
}
.ygt-archive-header__stat-label {
font-size: 12px;
color: var(--ygt-text-muted);
}
/* ==========================================================================
CATEGORY/TAG FOLLOW BUTTON
========================================================================== */
.ygt-follow-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background: var(--ygt-bg-secondary);
border: 1px solid var(--ygt-border);
border-radius: 20px;
font-size: 13px;
font-weight: 600;
color: var(--ygt-text-secondary);
cursor: pointer;
transition: all 0.2s ease;
margin-left: 12px;
}
.ygt-follow-btn:hover {
background: var(--ygt-primary);
border-color: var(--ygt-primary);
color: white;
}
.ygt-follow-btn:hover .ygt-follow-btn__icon {
stroke: white;
}
.ygt-follow-btn.is-following {
background: var(--ygt-primary);
border-color: var(--ygt-primary);
color: white;
}
.ygt-follow-btn.is-following .ygt-follow-btn__icon {
stroke: white;
fill: white;
}
.ygt-follow-btn.is-following:hover {
background: var(--ygt-danger);
border-color: var(--ygt-danger);
}
.ygt-follow-btn__icon {
flex-shrink: 0;
transition: all 0.2s ease;
}
.ygt-follow-btn.is-loading {
opacity: 0.7;
pointer-events: none;
}
/* Bell animation on follow */
@keyframes bell-ring {
0%,
100% {
transform: rotate(0);
}
25% {
transform: rotate(15deg);
}
50% {
transform: rotate(-15deg);
}
75% {
transform: rotate(10deg);
}
}
.ygt-follow-btn.is-following .ygt-follow-btn__icon {
animation: bell-ring 0.5s ease-in-out;
}
/* Mobile responsive */
@media (max-width: 480px) {
.ygt-follow-btn {
padding: 6px 12px;
font-size: 12px;
margin-left: 8px;
}
.ygt-follow-btn__icon {
width: 14px;
height: 14px;
}
}
/* ==========================================================================
AUTHOR PROFILE HEADER
========================================================================== */
.ygt-author-header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border-radius: var(--ygt-radius);
padding: 15px 20px;
margin: 15px 0;
color: var(--ygt-text-inverse);
}
.ygt-author-header__inner {
display: flex;
align-items: center;
gap: 25px;
max-width: 800px;
margin: 0 auto;
}
.ygt-author-header__avatar {
flex-shrink: 0;
}
.ygt-author-header__avatar img {
width: 80px;
height: 80px;
border-radius: 50%;
border: 3px solid rgba(255, 255, 255, 0.2);
object-fit: cover;
}
.ygt-author-header__info {
flex: 1;
}
.ygt-author-header__label {
display: inline-block;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--ygt-primary);
margin-bottom: 5px;
}
.ygt-author-header__name {
font-size: 22px;
font-weight: 800;
margin: 0 0 8px;
line-height: 1.2;
}
.ygt-author-header__bio {
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
line-height: 1.5;
margin: 0 0 12px;
}
.ygt-author-header__bio--placeholder {
font-style: italic;
color: rgba(255, 255, 255, 0.5);
}
.ygt-author-header__social {
display: flex;
gap: 12px;
}
.ygt-author-header__social-link {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
transition: color 0.2s;
}
.ygt-author-header__social-link:hover {
color: var(--ygt-primary);
}
/* Author Stats */
.ygt-author-header__stats {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.ygt-author-header__stat {
text-align: center;
}
.ygt-author-header__stat-value {
display: block;
font-size: 22px;
font-weight: 800;
color: var(--ygt-text-inverse);
}
.ygt-author-header__stat-label {
font-size: 10px;
color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Author Categories */
.ygt-author-header__categories {
margin-top: 30px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.ygt-author-header__categories-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
color: rgba(255, 255, 255, 0.5);
display: block;
margin-bottom: 15px;
}
.ygt-author-header__categories-list {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}
.ygt-author-header__category {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
font-size: 13px;
color: rgba(255, 255, 255, 0.9);
transition: all 0.2s;
}
.ygt-author-header__category:hover {
background: var(--ygt-primary);
color: var(--ygt-text-inverse);
}
.ygt-author-header__category-count {
font-size: 11px;
background: rgba(255, 255, 255, 0.2);
padding: 2px 8px;
border-radius: 10px;
}
/* Section Title */
.ygt-section-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 25px;
padding-bottom: 15px;
}
/* No Posts State */
.ygt-no-posts {
text-align: center;
padding: 60px 20px;
color: var(--ygt-text-muted);
}
.ygt-no-posts svg {
margin-bottom: 20px;
opacity: 0.4;
}
.ygt-no-posts h2 {
font-size: 20px;
color: var(--ygt-text);
margin-bottom: 8px;
}
.ygt-no-posts p {
font-size: 14px;
}
/* Responsive */
@media (max-width: 768px) {
.ygt-archive-header {
padding: 30px 20px;
}
.ygt-archive-header__title {
font-size: 28px;
}
.ygt-author-header {
padding: 30px 20px;
}
.ygt-author-header__inner {
flex-direction: column;
text-align: center;
}
.ygt-author-header__avatar img {
width: 100px;
height: 100px;
}
.ygt-author-header__name {
font-size: 24px;
}
.ygt-author-header__social {
justify-content: center;
}
.ygt-author-header__stats {
gap: 20px;
}
.ygt-author-header__stat-value {
font-size: 24px;
}
}
/* ==========================================================================
CUSTOM CATEGORY POSTS WIDGET
========================================================================== */
.ygt-category-posts {
display: flex;
flex-direction: column;
gap: 15px;
}
.ygt-category-posts__featured {
margin-bottom: 10px;
}
.ygt-category-posts__featured-image {
display: block;
overflow: hidden;
border-radius: var(--ygt-radius);
margin-bottom: 12px;
}
.ygt-category-posts__featured-image img {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
transition: transform 0.3s ease;
}
.ygt-category-posts__featured-image:hover img {
transform: scale(1.03);
}
.ygt-category-posts__featured-title {
font-size: 18px;
font-weight: 600;
font-family: 'Inter', sans-serif;
line-height: 1.35;
margin: 0;
}
.ygt-category-posts__featured-title a {
color: #000000;
transition: color 0.2s;
}
.ygt-category-posts__featured-title a:hover {
color: var(--ygt-primary);
}
.ygt-category-posts__list {
display: flex;
flex-direction: column;
}
.ygt-category-posts__view-all {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: var(--ygt-primary);
margin-top: 10px;
transition: gap 0.2s;
}
.ygt-category-posts__view-all:hover {
color: var(--ygt-primary-dark);
gap: 10px;
}
.ygt-category-posts__view-all svg {
transition: transform 0.2s;
}
.ygt-category-posts__view-all:hover svg {
transform: translateX(3px);
}
/* Sidebar Item Enhancements */
.ygt-sidebar-item__image-link {
flex-shrink: 0;
display: block;
width: 70px;
height: 50px;
overflow: hidden;
border-radius: var(--ygt-radius-sm);
position: relative;
}
.ygt-sidebar-item__image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.ygt-sidebar-item__content {
flex: 1;
min-width: 0;
}
.ygt-sidebar-item__title {
display: block;
font-size: 13px;
font-weight: 500;
font-family: 'Inter', sans-serif;
line-height: 1.35;
color: var(--ygt-text);
margin-bottom: 4px;
}
.ygt-sidebar-item__title:hover {
color: var(--ygt-primary);
}
.ygt-sidebar-item__date {
font-size: 11px;
color: var(--ygt-text-muted);
}
/* ==========================================================================
AD SLOT SIZES
========================================================================== */
.ygt-ad-slot {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
.ygt-ad-slot--responsive {
width: 100%;
min-height: 100px;
}
.ygt-ad-slot--leaderboard {
width: 100%;
height: 90px;
}
.ygt-ad-slot--rectangle {
width: 300px;
max-width: 100%;
height: 250px;
}
.ygt-ad-slot--sidebar {
width: 300px;
max-width: 100%;
height: 600px;
}
.ygt-ad-slot--square {
width: 250px;
max-width: 100%;
height: 250px;
}
/* ==========================================================================
COMPACT PAGE HEADERS
========================================================================== */
.ygt-page-header {
padding: 15px 0 20px;
margin-bottom: 20px;
}
.ygt-page-header__label {
display: block;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ygt-primary);
font-weight: 600;
margin-bottom: 5px;
}
.ygt-page-header__title {
font-size: 24px;
font-weight: 700;
font-family: 'Inter', sans-serif;
color: #000000;
margin: 0 0 5px;
line-height: 1.2;
}
.ygt-page-header__count {
font-size: 13px;
color: var(--ygt-text-muted);
}
/* Search Header */
.ygt-search-header {
padding: 25px 30px;
margin-bottom: 25px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-radius: var(--ygt-radius-lg);
border-left: 4px solid var(--ygt-primary);
}
.ygt-search-header__label {
display: inline-block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--ygt-primary);
margin-bottom: 8px;
}
.ygt-search-header__title {
font-size: 28px;
font-weight: 700;
color: #1e293b;
margin: 0 0 8px;
}
.ygt-search-header__count {
font-size: 14px;
color: var(--ygt-text-muted);
}
/* ==========================================================================
PAGINATION - Full Width with More Page Numbers
========================================================================== */
.ygt-pagination-wrapper {
width: 100%;
margin: 20px 0;
}
.ygt-pagination {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
padding: 30px 0;
font-size: 13px;
width: 100%;
}
.ygt-pagination a,
.ygt-pagination span {
display: inline-flex !important;
visibility: visible !important;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 8px;
border-radius: var(--ygt-radius);
transition: all 0.2s;
text-decoration: none;
}
.ygt-pagination a {
background: var(--ygt-bg-alt, #f5f5f5);
color: var(--ygt-text, #1a1a1a);
border: 1px solid var(--ygt-border, #e5e5e5);
}
.ygt-pagination a:hover {
background: var(--ygt-primary, #f97316);
color: white;
border-color: var(--ygt-primary, #f97316);
}
.ygt-pagination a.prev,
.ygt-pagination a.next {
padding: 0 16px;
font-weight: 500;
min-width: auto;
white-space: nowrap;
background: var(--ygt-primary, #f97316);
color: white;
border-color: var(--ygt-primary, #f97316);
}
.ygt-pagination span.current {
background: var(--ygt-primary, #f97316);
color: white;
font-weight: 600;
border: 1px solid var(--ygt-primary, #f97316);
}
.ygt-pagination span.dots {
background: transparent;
color: var(--ygt-text-muted, #6b7280);
min-width: 24px;
padding: 0;
border: none;
}
.ygt-pagination .nav-links {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
width: 100%;
}
.ygt-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 8px;
border-radius: var(--ygt-radius);
background: var(--ygt-bg-alt);
color: var(--ygt-text);
transition: all 0.2s;
}
.ygt-pagination .page-numbers.current {
background: var(--ygt-primary);
color: white;
font-weight: 600;
}
.ygt-pagination .page-numbers:hover:not(.current):not(.dots) {
background: var(--ygt-primary);
color: white;
}
/* Mobile: Horizontal swipeable pagination */
@media (max-width: 768px) {
.ygt-pagination-wrapper {
position: relative;
overflow: hidden;
}
.ygt-pagination {
display: flex;
flex-wrap: nowrap !important;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
/* Firefox */
gap: 4px;
font-size: 12px;
padding: 12px 0;
justify-content: flex-start;
}
/* Hide scrollbar but keep functionality */
.ygt-pagination::-webkit-scrollbar {
display: none;
}
.ygt-pagination a,
.ygt-pagination span,
.ygt-pagination .page-numbers {
min-width: 32px;
height: 32px;
padding: 0 8px;
flex-shrink: 0;
}
.ygt-pagination a.prev,
.ygt-pagination a.next {
padding: 0 10px;
min-width: auto;
background: var(--ygt-primary);
color: white;
flex-shrink: 0;
}
.ygt-pagination .nav-links {
flex-wrap: nowrap;
}
/* Swipe hint indicator */
.ygt-pagination-wrapper::after {
content: '← swipe for more pages →';
display: block;
text-align: center;
font-size: 10px;
color: var(--ygt-text-muted);
padding: 4px 0 0 0;
opacity: 0.6;
}
}
/* ==========================================================================
COMMENTS - Simple Block Layout with Thread Lines
========================================================================== */
.ygt-comments {
margin-top: 40px;
}
.ygt-comments__title {
font-size: 16px;
font-weight: 600;
margin-bottom: 20px;
}
/* Comment list */
.ygt-comments__list,
.comment-list {
list-style: none;
margin: 0;
padding: 0;
}
/* Individual Comment - simple block */
.ygt-comment,
.comment {
display: block;
margin-bottom: 16px;
padding-bottom: 12px;
}
/* Comment wrapper with avatar */
.ygt-comment__wrapper {
display: flex;
gap: 12px;
}
/* Avatar */
.ygt-comment__thread {
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: center;
}
.ygt-comment__avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: #e2e8f0;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 600;
color: #64748b;
}
/* Thread line */
.ygt-comment__thread-line {
width: 2px;
flex: 1;
background: #e2e8f0;
margin-top: 4px;
min-height: 10px;
cursor: pointer;
transition: background 0.15s;
}
.ygt-comment__thread-line:hover {
background: var(--ygt-primary);
}
/* Main content */
.ygt-comment__main {
flex: 1;
min-width: 0;
}
/* Comment Header */
.ygt-comment__header {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
}
.ygt-comment__author {
font-weight: 600;
font-size: 13px;
color: var(--ygt-text);
}
.ygt-comment__separator {
color: var(--ygt-text-muted);
font-size: 12px;
}
.ygt-comment__date {
color: var(--ygt-text-muted);
font-size: 12px;
}
/* Comment Content */
.ygt-comment__content {
font-size: 14px;
line-height: 1.6;
color: var(--ygt-text);
margin-bottom: 8px;
}
.ygt-comment__content p {
margin: 0 0 8px;
}
.ygt-comment__content p:last-child {
margin-bottom: 0;
}
.ygt-comment__awaiting {
color: var(--ygt-text-muted);
font-size: 12px;
font-style: italic;
}
/* Comment Actions */
.ygt-comment__actions {
display: flex;
align-items: center;
gap: 4px;
}
.ygt-comment__action {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border: none;
background: transparent;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
color: var(--ygt-text-muted);
cursor: pointer;
transition: all 0.15s;
}
.ygt-comment__action:hover {
background: #f1f5f9;
color: var(--ygt-text);
}
.ygt-comment__action svg {
flex-shrink: 0;
}
.ygt-comment__vote--up:hover {
color: var(--ygt-primary);
}
.ygt-comment__vote--down:hover {
color: #6366f1;
}
/* Reply link styling */
.ygt-comment__reply {
display: inline-flex;
align-items: center;
gap: 4px;
}
.ygt-comment__reply a {
color: inherit;
text-decoration: none;
}
/* Nested comments - indented with left border */
.ygt-comment .children,
.comment .children {
list-style: none;
margin: 12px 0 0 0;
padding: 0 0 0 20px;
border-left: 2px solid #e2e8f0;
}
.ygt-comment .children .ygt-comment,
.comment .children .comment {
margin-bottom: 12px;
padding-bottom: 0;
}
.ygt-comment .children .ygt-comment:last-child,
.comment .children .comment:last-child {
margin-bottom: 0;
}
.ygt-comment__reply:hover {
color: var(--ygt-primary);
}
/* Star/Award button */
.ygt-comment__star:hover {
color: #eab308;
}
.ygt-comment__star:hover svg {
stroke: #eab308;
}
/* Share button */
.ygt-comment__share:hover {
color: #22c55e;
}
.ygt-comment__share:hover svg {
stroke: #22c55e;
}
/* Threaded/Nested Comments */
.ygt-comment .children {
margin-left: 40px;
border-left: 2px solid var(--ygt-border);
padding-left: 15px;
}
.ygt-comment .children .ygt-comment__inner {
padding: 10px 0;
}
/* Comment Form */
.ygt-comment-form {
background: var(--ygt-bg-alt);
border-radius: var(--ygt-radius);
padding: 20px;
margin-bottom: 25px;
}
.ygt-comment-form__title {
font-size: 14px;
font-weight: 600;
margin-bottom: 15px;
}
.ygt-comment-form__logged-in {
font-size: 13px;
color: var(--ygt-text-muted);
margin-bottom: 12px;
}
.ygt-comment-form__logged-in a {
color: var(--ygt-primary);
}
.ygt-comment-form__field textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--ygt-border);
border-radius: var(--ygt-radius);
font-family: inherit;
font-size: 14px;
resize: vertical;
min-height: 100px;
}
.ygt-comment-form__field textarea:focus {
outline: none;
border-color: var(--ygt-primary);
}
.ygt-comment-form__submit {
margin-top: 12px;
padding: 10px 20px;
background: var(--ygt-primary);
color: white;
border: none;
border-radius: var(--ygt-radius);
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.ygt-comment-form__submit:hover {
background: var(--ygt-primary-dark);
}
/* Reply Form */
#respond {
margin-top: 15px;
padding: 15px;
background: var(--ygt-bg-alt);
border-radius: var(--ygt-radius);
}
#respond .comment-reply-title {
font-size: 14px;
margin-bottom: 10px;
}
#respond .comment-reply-title small {
margin-left: 10px;
}
#respond .comment-reply-title small a {
color: var(--ygt-text-muted);
}
/* ==========================================================================
VIDEO PLAYER (Watch Page Style)
========================================================================== */
.ygt-video-player {
margin-bottom: 20px;
}
.ygt-video-player__embed {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
border-radius: 16px;
overflow: hidden;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06),
0 0 0 1px rgba(0, 0, 0, 0.05);
background: #000;
}
.ygt-video-player__embed iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
border-radius: 16px;
}
.ygt-video-player__embed .wp-block-embed,
.ygt-video-player__embed .wp-block-embed__wrapper {
width: 100% !important;
height: 100% !important;
position: absolute;
top: 0;
left: 0;
}
.ygt-video-player__embed .wp-block-embed__wrapper iframe {
width: 100% !important;
height: 100% !important;
border-radius: 16px;
}
/* Video category article - style all embeds */
.category-video .ygt-article__content iframe,
.category-video .ygt-article__content .wp-block-embed {
border-radius: 16px;
overflow: hidden;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06),
0 0 0 1px rgba(0, 0, 0, 0.05);
}
.category-video .ygt-article__content .wp-block-embed__wrapper {
border-radius: 16px;
overflow: hidden;
}
.category-video .ygt-article__content .wp-block-embed figcaption {
text-align: center;
font-size: 13px;
color: var(--ygt-text-muted);
margin-top: 12px;
}
/* Subscribe Bar */
.ygt-subscribe-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
margin-bottom: 20px;
}
.ygt-subscribe-bar__text {
font-size: 14px;
font-weight: 500;
color: var(--ygt-text);
}
.ygt-subscribe-bar__button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background: #FF0000;
color: white;
font-size: 13px;
font-weight: 600;
border-radius: var(--ygt-radius-sm);
transition: background 0.2s;
}
.ygt-subscribe-bar__button:hover {
background: #CC0000;
color: white;
}
/* Footer Logo Image */
.ygt-footer__logo-img {
max-width: 180px;
height: auto;
}
/* Video Category Icon Badge */
.ygt-article__category--video::before {
content: '';
display: inline-block;
width: 14px;
height: 14px;
margin-right: 4px;
vertical-align: middle;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
}
/* All images global radius */
img {
border-radius: var(--ygt-radius);
}
/* Featured Article Styling */
.ygt-featured {
margin-bottom: 25px;
}
.ygt-featured__main {
display: block;
position: relative;
border-radius: var(--ygt-radius);
overflow: hidden;
}
.ygt-featured__main-image {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
border-radius: var(--ygt-radius);
transition: transform 0.3s;
}
.ygt-featured:hover .ygt-featured__main-image {
transform: scale(1.02);
}
.ygt-featured__main-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 30px 25px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.ygt-featured__main-category {
display: inline-block;
padding: 4px 10px;
background: var(--ygt-primary);
color: white;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
border-radius: var(--ygt-radius-sm);
margin-bottom: 10px;
}
.ygt-featured__main-title {
font-size: 22px;
font-weight: 700;
color: white;
line-height: 1.3;
margin: 0;
transition: color 0.2s ease;
}
.ygt-featured:hover .ygt-featured__main-title {
color: var(--ygt-primary);
}
/* ==========================================================================
SPECS BOX STYLING - For device specs sections
========================================================================== */
/* Manual specs box class - add class="specs-box" to paragraphs */
.ygt-specs-box,
.specs-box {
background: #fff;
border: 1px solid #e5e5e5;
border-left: 4px solid var(--ygt-primary);
padding: 16px 20px;
border-radius: var(--ygt-radius);
margin: 20px 0;
}
.ygt-specs-box strong:first-child,
.specs-box strong:first-child {
display: block;
font-size: 18px;
font-weight: 700;
color: var(--ygt-primary);
margin-bottom: 12px;
padding-bottom: 0;
border-bottom: none;
}
/* Specs item styling - each line in specs box */
.ygt-specs-item,
.specs-box br+br,
.ygt-specs-box p,
.specs-box p {
font-size: 13px;
color: #333;
padding: 0 !important;
border-bottom: 1px solid #f5f5f5;
line-height: 1.4;
margin: 0;
list-style: none !important;
list-style-type: none !important;
}
/* Remove bullet points from specs lists */
.ygt-specs-box ul,
.specs-box ul {
list-style: none;
margin: 0;
padding: 0;
}
.ygt-specs-box li,
.specs-box li {
font-size: 13px;
color: #333;
padding: 0 !important;
border-bottom: 1px solid #f5f5f5;
line-height: 1.4;
margin: 0 !important;
list-style: none !important;
}
.ygt-specs-box li:last-child,
.specs-box li:last-child {
border-bottom: none;
}
/* Sub-items with bullet prefix */
.ygt-specs-box li::before,
.specs-box li[data-bullet]::before {
content: none;
}
/* Full-width small images in article content */
.ygt-article__content img {
margin: 25px 0 !important;
width: 100% !important;
max-width: 100% !important;
height: auto;
border-radius: var(--ygt-radius);
display: block;
}
/* Fix WordPress alignnone/size-full images that may overflow container */
.ygt-article__content img.alignnone,
.ygt-article__content img.size-full,
.ygt-article__content img.wp-image,
.ygt-article__content .wp-block-image img {
margin-left: 0 !important;
margin-right: 0 !important;
max-width: 100% !important;
}
/* WordPress figure/image blocks - ensure full width with proper overflow */
.ygt-article__content figure,
.ygt-article__content .wp-block-image {
width: 100%;
max-width: 100%;
margin: 25px 0;
overflow: hidden;
border-radius: var(--ygt-radius);
background: #f8fafc;
}
.ygt-article__content figure img,
.ygt-article__content .wp-block-image img {
width: 100% !important;
height: auto;
display: block;
border-radius: 0;
/* Parent handles radius */
margin: 0;
/* Remove margin since figure handles spacing */
}
/* Beautiful Figcaption / Image Caption Styling */
.ygt-article__content figcaption,
.ygt-article__content .wp-element-caption,
.ygt-article__content .wp-caption-text {
padding: 12px 16px;
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
border-top: 1px solid #e2e8f0;
font-size: 13px;
line-height: 1.5;
color: #64748b;
text-align: center;
font-style: italic;
position: relative;
}
/* Caption with source/credit indicator */
.ygt-article__content figcaption::before {
content: '';
display: inline-block;
width: 16px;
height: 16px;
margin-right: 6px;
vertical-align: middle;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
}
/* Links in captions */
.ygt-article__content figcaption a {
color: var(--ygt-primary);
text-decoration: none;
font-style: normal;
font-weight: 500;
}
.ygt-article__content figcaption a:hover {
text-decoration: underline;
}
/* Dark mode support */
[data-theme="dark"] .ygt-article__content figure,
[data-theme="dark"] .ygt-article__content .wp-block-image {
background: #1e293b;
}
[data-theme="dark"] .ygt-article__content figcaption,
[data-theme="dark"] .ygt-article__content .wp-element-caption,
[data-theme="dark"] .ygt-article__content .wp-caption-text {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
border-top-color: #475569;
color: #94a3b8;
}
/* ==========================================================================
IMAGE LIGHTBOX
========================================================================== */
.ygt-lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999;
display: none;
}
.ygt-lightbox.is-active {
display: flex;
align-items: center;
justify-content: center;
}
.ygt-lightbox__overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
cursor: zoom-out;
animation: lightboxFadeIn 0.2s ease;
}
@keyframes lightboxFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.ygt-lightbox__content {
position: relative;
z-index: 1;
max-width: 90vw;
max-height: 90vh;
animation: lightboxZoomIn 0.25s ease;
}
@keyframes lightboxZoomIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
.ygt-lightbox__image {
max-width: 100%;
max-height: 90vh;
border-radius: 8px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.ygt-lightbox__close {
position: absolute;
top: -40px;
right: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 50%;
color: white;
cursor: pointer;
transition: background 0.2s;
}
.ygt-lightbox__close:hover {
background: rgba(255, 255, 255, 0.2);
}
/* Article images hover effect */
.ygt-article__content img {
transition: transform 0.2s, box-shadow 0.2s;
}
.ygt-article__content img:hover {
transform: scale(1.01);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
/* ==========================================================================
PWA INSTALL BANNER
========================================================================== */
.ygt-install-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
color: white;
padding: 15px 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
z-index: 9999;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
transform: translateY(100%);
transition: transform 0.3s ease;
}
.ygt-install-banner.is-visible {
transform: translateY(0);
}
.ygt-install-banner__content {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
}
.ygt-install-banner__icon {
width: 48px;
height: 48px;
border-radius: 10px;
flex-shrink: 0;
}
.ygt-install-banner__text {
display: flex;
flex-direction: column;
gap: 2px;
}
.ygt-install-banner__text strong {
font-size: 15px;
font-weight: 700;
}
.ygt-install-banner__text span {
font-size: 13px;
color: rgba(255, 255, 255, 0.8);
}
.ygt-install-banner__actions {
display: flex;
gap: 10px;
flex-shrink: 0;
}
.ygt-install-banner__btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.ygt-install-banner__btn--install {
background: var(--ygt-primary);
color: white;
}
.ygt-install-banner__btn--install:hover {
background: var(--ygt-primary-dark);
}
.ygt-install-banner__btn--dismiss {
background: transparent;
color: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.ygt-install-banner__btn--dismiss:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
/* Mobile adjustments */
@media (max-width: 600px) {
.ygt-install-banner {
flex-direction: column;
text-align: center;
}
.ygt-install-banner__content {
flex-direction: column;
}
.ygt-install-banner__actions {
width: 100%;
}
.ygt-install-banner__btn {
flex: 1;
}
}
/* Body adjustment when banner is visible */
body.has-install-banner {
padding-bottom: 80px;
}
/* ==========================================================================
NOTIFICATION PERMISSION MODAL
========================================================================== */
.ygt-notification-modal {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
}
.ygt-notification-modal.is-visible {
opacity: 1;
visibility: visible;
}
.ygt-notification-modal__overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
}
.ygt-notification-modal__content {
position: relative;
background: white;
padding: 30px;
border-radius: 16px;
max-width: 380px;
width: 90%;
text-align: center;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
transform: scale(0.9);
transition: transform 0.3s;
}
.ygt-notification-modal.is-visible .ygt-notification-modal__content {
transform: scale(1);
}
.ygt-notification-modal__icon {
width: 70px;
height: 70px;
margin: 0 auto 20px;
background: rgba(249, 115, 22, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.ygt-notification-modal__title {
font-size: 22px;
font-weight: 700;
color: #1e293b;
margin: 0 0 10px;
}
.ygt-notification-modal__text {
font-size: 15px;
color: #64748b;
line-height: 1.6;
margin: 0 0 25px;
}
.ygt-notification-modal__actions {
display: flex;
flex-direction: column;
gap: 10px;
}
.ygt-notification-modal__btn {
padding: 14px 24px;
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.ygt-notification-modal__btn--enable {
background: var(--ygt-primary);
color: white;
}
.ygt-notification-modal__btn--enable:hover {
background: var(--ygt-primary-dark);
}
.ygt-notification-modal__btn--skip {
background: transparent;
color: #64748b;
}
.ygt-notification-modal__btn--skip:hover {
background: #f1f5f9;
color: #1e293b;
}
/* ==========================================================================
SINGLE POST INFINITE SCROLL
========================================================================== */
.ygt-single-posts {
display: flex;
flex-direction: column;
}
.ygt-single-article {
position: relative;
}
/* Article Separator */
.ygt-article-separator {
display: flex;
align-items: center;
gap: 20px;
padding: 40px 0;
margin: 20px 0;
}
.ygt-article-separator__line {
flex: 1;
height: 1px;
background: linear-gradient(to right, transparent, var(--ygt-border), transparent);
}
.ygt-article-separator__text {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--ygt-text-muted);
padding: 8px 20px;
background: var(--ygt-bg-alt);
border-radius: 20px;
white-space: nowrap;
}
/* Load Trigger */
.ygt-single-load-trigger {
padding: 40px 20px;
text-align: center;
}
.ygt-single-load__spinner {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
color: var(--ygt-text-muted);
font-size: 14px;
}
.ygt-single-load-trigger.is-loading .ygt-single-load__spinner {
opacity: 1;
}
.ygt-single-load__error {
color: #ef4444;
font-size: 14px;
}
.ygt-single-load__retry {
background: none;
border: none;
color: var(--ygt-primary);
text-decoration: underline;
cursor: pointer;
margin-left: 8px;
}
.ygt-single-load__retry:hover {
color: var(--ygt-primary-dark);
}
/* Compact Related Articles for Infinite Scroll */
.ygt-related--compact {
margin: 30px 0;
padding: 20px 0;
}
.ygt-related--compact .ygt-related__title {
font-size: 14px;
margin-bottom: 15px;
}
.ygt-related--compact .ygt-related__grid {
gap: 15px;
}
.ygt-related--compact .ygt-related__item-title {
font-size: 13px;
}
/* Loading Spinner Animation */
.ygt-loading__spinner {
width: 24px;
height: 24px;
border: 2px solid var(--ygt-border);
border-top-color: var(--ygt-primary);
border-radius: 50%;
animation: ygt-spin 0.8s linear infinite;
}
@keyframes ygt-spin {
to {
transform: rotate(360deg);
}
}
/* Ad Slot Placeholder Styling (Admin Only) */
.ygt-ad-slot--placeholder {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
border: 2px dashed var(--ygt-border);
border-radius: var(--ygt-radius);
padding: 20px;
color: var(--ygt-text-muted);
font-size: 13px;
font-weight: 500;
}
.ygt-ad-slot__edit {
background: var(--ygt-primary);
color: white;
padding: 6px 14px;
border-radius: var(--ygt-radius);
font-size: 12px;
font-weight: 600;
text-decoration: none;
transition: background 0.2s;
}
.ygt-ad-slot__edit:hover {
background: var(--ygt-primary-dark);
color: white;
}
/* ==========================================================================
INTERSTITIAL ADS (Between Infinite Scroll Articles)
========================================================================== */
.ygt-article-interstitial {
padding: 30px 0;
margin: 20px 0;
text-align: center;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-top: 1px solid var(--ygt-border);
border-bottom: 1px solid var(--ygt-border);
}
[data-theme="dark"] .ygt-article-interstitial {
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.ygt-article-interstitial__label {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--ygt-text-muted);
margin-bottom: 15px;
}
.ygt-article-interstitial .ygt-ad-slot {
max-width: 970px;
margin: 0 auto;
}
.ygt-article-interstitial .ygt-ad-slot--leaderboard,
.ygt-article-interstitial .ygt-ad-slot--interstitial {
display: flex;
align-items: center;
justify-content: center;
}
@media (max-width: 1024px) {
.ygt-article-interstitial {
padding: 20px 15px;
margin: 15px 0;
}
.ygt-article-interstitial .ygt-ad-slot {
max-width: 100%;
}
}
/* ============================================
BREAKING NEWS TICKER
============================================ */
.ygt-breaking {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
padding: 6px 12px;
margin: 12px 0;
border-radius: 6px;
position: relative;
z-index: 100;
transition: all 0.3s ease;
/* Prevent backdrop/overlay bleed */
isolation: isolate;
}
.ygt-breaking--trending {
background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.ygt-breaking--sticky {
position: fixed;
top: 0;
left: 0;
right: 0;
margin: 0;
border-radius: 0;
z-index: 9999;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Hidden state - slides up when scrolled too far */
.ygt-breaking--hidden {
transform: translateY(-100%);
opacity: 0;
pointer-events: none;
}
.ygt-breaking__inner {
display: flex;
align-items: center;
gap: 8px;
max-width: 1200px;
margin: 0 auto;
overflow: hidden;
}
.ygt-breaking__label {
background: rgba(255, 255, 255, 0.2);
color: white;
font-size: 9px;
font-weight: 700;
padding: 3px 8px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
flex-shrink: 0;
animation: none;
}
@keyframes breaking-pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.ygt-breaking__link {
color: white;
text-decoration: none;
overflow: hidden;
flex: 1;
}
.ygt-breaking__text {
display: inline-block;
white-space: nowrap;
font-size: 13px;
}
/* Scroll animation ONLY for breaking news single-link mode (not for flipper) */
.ygt-breaking__link .ygt-breaking__text {
animation: breaking-scroll 15s linear infinite;
}
/* Disable scroll animation inside the flipper (airport drop mode) */
.ygt-breaking__flipper .ygt-breaking__text {
animation: none;
}
@keyframes breaking-scroll {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
.ygt-breaking__link:hover .ygt-breaking__text {
animation-play-state: paused;
}
/* Trending Articles Flip Ticker Mode (Airport Style Fallback) */
.ygt-breaking--top {
background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.ygt-breaking__label--top,
.ygt-breaking__label--trending {
background: rgba(255, 255, 255, 0.2);
color: white;
}
/* Flipper container */
.ygt-breaking__flipper {
position: relative;
flex: 1;
height: 22px;
overflow: hidden;
}
/* Individual flip items - stacked absolutely, NO transition (animation-only to prevent snap-back overlap) */
.ygt-breaking__flip-item {
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
color: white;
text-decoration: none;
opacity: 0;
transform: translateY(-100%);
transition: none;
pointer-events: none;
font-size: 13px;
}
/* Active state - visible and in position */
.ygt-breaking__flip-item.is-active {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
/* Entering animation - slide in from top */
.ygt-breaking__flip-item.is-entering {
animation: ygt-flip-in 0.3s ease-out both;
}
.ygt-breaking__flip-item.is-exiting {
animation: ygt-flip-out 0.25s ease-in;
}
@keyframes ygt-flip-in {
0% {
opacity: 0;
transform: translateY(100%);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes ygt-flip-out {
0% {
opacity: 1;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(-100%);
}
}
/* Glow effect for breaking news links - inviting pulse */
.ygt-breaking__link--glow {
animation: ygt-glow-pulse 2s ease-in-out infinite;
}
@keyframes ygt-glow-pulse {
0%,
100% {
text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
50% {
text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(249, 115, 22, 0.5);
}
}
/* New breaking news entrance effect */
.ygt-breaking--new {
animation: ygt-breaking-flash 0.5s ease 3;
}
@keyframes ygt-breaking-flash {
0%,
100% {
box-shadow: 0 0 0 rgba(239, 68, 68, 0);
}
50% {
box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
}
/* Hover effect on flip items */
.ygt-breaking__flip-item:hover .ygt-breaking__text {
text-decoration: underline;
text-underline-offset: 3px;
}
/* Mobile adjustments */
@media (max-width: 768px) {
.ygt-breaking {
padding: 5px 10px;
margin: 8px 0;
border-radius: 5px;
}
.ygt-breaking__inner {
gap: 6px;
min-width: 0;
}
.ygt-breaking__label {
font-size: 8px;
padding: 2px 5px;
flex-shrink: 0;
white-space: nowrap;
}
.ygt-breaking__flipper {
min-width: 0;
flex: 1;
overflow: hidden;
height: 20px;
}
.ygt-breaking__text {
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
display: block;
}
.ygt-breaking__flip-item {
max-width: 100%;
}
.ygt-breaking__scroller {
animation-duration: 20s;
}
}
/* ============================================
ENHANCED AUTHOR PROFILE PAGE
============================================ */
.ygt-author-profile {
background: linear-gradient(135deg, var(--ygt-bg-secondary) 0%, var(--ygt-bg-tertiary) 100%);
border-radius: var(--ygt-radius-lg);
padding: 32px;
margin-bottom: 32px;
border: 1px solid var(--ygt-border);
/* Desktop: 2-column grid layout for efficient space usage */
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
gap: 20px;
}
.ygt-author-profile__main {
display: flex;
gap: 24px;
grid-column: 1;
grid-row: 1;
}
.ygt-author-profile__avatar {
flex-shrink: 0;
}
.ygt-author-profile__avatar img {
width: 150px;
height: 150px;
border-radius: 50%;
border: 4px solid var(--ygt-primary);
box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}
.ygt-author-profile__info {
flex: 1;
}
.ygt-author-profile__badge {
display: inline-block;
background: var(--ygt-primary);
color: white;
font-size: 11px;
font-weight: 700;
padding: 4px 12px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.ygt-author-profile__name {
font-size: 2rem;
font-weight: 800;
color: var(--ygt-text-primary);
margin: 0 0 12px 0;
}
.ygt-author-profile__bio {
color: var(--ygt-text-secondary);
line-height: 1.6;
margin: 0 0 16px 0;
max-width: 600px;
}
.ygt-author-profile__bio--placeholder {
font-style: italic;
opacity: 0.7;
}
.ygt-author-profile__since {
display: flex;
align-items: center;
gap: 8px;
color: var(--ygt-text-tertiary);
font-size: 14px;
margin-bottom: 16px;
}
.ygt-author-profile__since svg {
opacity: 0.6;
}
.ygt-author-profile__since strong {
color: var(--ygt-text-primary);
}
.ygt-author-profile__social {
display: flex;
gap: 12px;
margin-bottom: 16px;
}
.ygt-author-profile__social a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--ygt-bg-primary);
color: var(--ygt-text-secondary);
transition: all 0.2s ease;
}
.ygt-author-profile__social a:hover {
background: var(--ygt-primary);
color: white;
transform: translateY(-2px);
}
.ygt-author-profile__follow {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--ygt-primary);
color: white;
border: none;
padding: 12px 24px;
border-radius: 30px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.ygt-author-profile__follow:hover {
background: var(--ygt-primary-dark);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.ygt-author-profile__follow.following {
background: var(--ygt-success);
}
/* Stats Cards - Desktop: Right column */
.ygt-author-profile__stats {
grid-column: 2;
grid-row: 1;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
padding: 16px 20px;
background: var(--ygt-bg-primary);
border-radius: var(--ygt-radius);
align-self: start;
min-width: 240px;
}
.ygt-author-profile__stat {
text-align: center;
}
.ygt-author-profile__stat-value {
display: block;
font-size: 2rem;
font-weight: 800;
color: var(--ygt-primary);
}
.ygt-author-profile__stat-label {
font-size: 12px;
color: var(--ygt-text-tertiary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Categories Tags - Desktop: Second row, full width */
.ygt-author-profile__categories {
grid-column: 1 / -1;
grid-row: 2;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
padding-top: 16px;
border-top: 1px solid var(--ygt-border);
}
.ygt-author-profile__categories-label {
font-size: 13px;
color: var(--ygt-text-tertiary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.ygt-author-profile__categories-list {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.ygt-author-profile__category {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--ygt-bg-primary);
color: var(--ygt-text-primary);
padding: 6px 14px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
text-decoration: none;
transition: all 0.2s ease;
}
.ygt-author-profile__category span {
background: var(--ygt-primary);
color: white;
font-size: 11px;
padding: 2px 6px;
border-radius: 10px;
}
.ygt-author-profile__category:hover {
background: var(--ygt-primary);
color: white;
}
.ygt-author-profile__category:hover span {
background: white;
color: var(--ygt-primary);
}
/* Author Sections */
.ygt-author-section {
margin-bottom: 48px;
}
.ygt-author-section .ygt-section-title {
margin-bottom: 24px;
}
/* Mini Cards for Reviews/Hot Topics */
.ygt-posts--horizontal {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.ygt-mini-card {
display: flex;
gap: 12px;
background: var(--ygt-bg-secondary);
padding: 12px;
border-radius: var(--ygt-radius);
text-decoration: none;
transition: all 0.2s ease;
}
.ygt-mini-card:hover {
background: var(--ygt-bg-tertiary);
transform: translateY(-2px);
}
.ygt-mini-card__image {
width: 80px;
height: 60px;
object-fit: cover;
border-radius: var(--ygt-radius-sm);
flex-shrink: 0;
}
.ygt-mini-card__content {
flex: 1;
min-width: 0;
}
.ygt-mini-card__title {
font-size: 14px;
font-weight: 600;
color: var(--ygt-text-primary);
margin: 0 0 4px 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.ygt-mini-card__date,
.ygt-mini-card__meta {
font-size: 12px;
color: var(--ygt-text-tertiary);
display: flex;
align-items: center;
gap: 4px;
}
.ygt-mini-card--hot {
border-left: 3px solid var(--ygt-danger);
}
/* Author Activities - COMPACT */
.ygt-author-activities {
display: flex;
flex-direction: column;
gap: 8px;
}
.ygt-activity-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
background: var(--ygt-bg-secondary);
border-radius: var(--ygt-radius);
border-left: 3px solid var(--ygt-primary);
}
.ygt-activity-item__icon {
display: none;
/* Hidden for compact view */
}
.ygt-activity-item__content {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.ygt-activity-item__text {
margin: 0;
font-size: 13px;
color: var(--ygt-text-secondary);
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.ygt-activity-item__text a {
color: var(--ygt-text-primary);
font-weight: 600;
text-decoration: none;
}
.ygt-activity-item__text a:hover {
color: var(--ygt-primary);
}
.ygt-activity-item__quote {
display: none;
/* Hidden for compact view */
}
.ygt-activity-item__date {
font-size: 11px;
color: var(--ygt-text-tertiary);
white-space: nowrap;
margin-left: auto;
}
/* Tablet Responsive - preserves desktop 2-column grid, just adjusts sizing */
@media (max-width: 768px) {
.ygt-author-profile {
padding: 24px;
grid-template-columns: 1fr 200px;
}
.ygt-author-profile__main {
gap: 20px;
}
.ygt-author-profile__avatar img {
width: 100px;
height: 100px;
}
.ygt-author-profile__name {
font-size: 1.5rem;
}
.ygt-author-profile__bio {
max-width: 100%;
}
.ygt-author-profile__stat-value {
font-size: 1.25rem;
}
.ygt-author-profile__posts--horizontal {
grid-template-columns: 1fr;
}
}
/* ============================================
AUTHOR FOLLOW - FOLLOWING STATE
============================================ */
.ygt-author-profile__follow.following {
background: #22c55e;
}
.ygt-author-profile__follow.following:hover {
background: #16a34a;
}
/* Toast Notifications */
.ygt-toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: #1e293b;
color: white;
padding: 14px 24px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
z-index: 10000;
opacity: 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ygt-toast.is-visible {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
/* ==========================================================================
GOOGLE NEWS FOLLOW PROMPT - Subtle, non-intrusive
========================================================================== */
.ygt-gnews-prompt {
position: fixed;
bottom: 24px;
right: 24px;
max-width: 320px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
padding: 16px;
z-index: 9998;
opacity: 0;
transform: translateY(20px) scale(0.95);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: none;
border: 1px solid rgba(0, 0, 0, 0.06);
}
.ygt-gnews-prompt.is-visible {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.ygt-gnews-prompt__header {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 12px;
}
.ygt-gnews-prompt__icon {
width: 40px;
height: 40px;
flex-shrink: 0;
}
.ygt-gnews-prompt__icon svg {
width: 100%;
height: 100%;
}
.ygt-gnews-prompt__text {
flex: 1;
}
.ygt-gnews-prompt__title {
font-size: 15px;
font-weight: 600;
color: #1a1a1a;
margin: 0 0 4px;
line-height: 1.3;
}
.ygt-gnews-prompt__subtitle {
font-size: 13px;
color: #5f6368;
line-height: 1.4;
margin: 0;
}
.ygt-gnews-prompt__close {
position: absolute;
top: 8px;
right: 8px;
width: 28px;
height: 28px;
border: none;
background: transparent;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #9aa0a6;
transition: all 0.2s;
}
.ygt-gnews-prompt__close:hover {
background: rgba(0, 0, 0, 0.06);
color: #5f6368;
}
.ygt-gnews-prompt__actions {
display: flex;
gap: 8px;
}
.ygt-gnews-prompt__btn {
flex: 1;
padding: 10px 16px;
border-radius: 24px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
text-align: center;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.ygt-gnews-prompt__btn--primary {
background: #1a73e8;
color: white;
border: none;
}
.ygt-gnews-prompt__btn--primary:hover {
background: #1557b0;
box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}
.ygt-gnews-prompt__btn--secondary {
background: transparent;
color: #5f6368;
border: 1px solid #dadce0;
}
.ygt-gnews-prompt__btn--secondary:hover {
background: #f8f9fa;
border-color: #d2d2d2;
}
/* Dark mode support */
[data-theme="dark"] .ygt-gnews-prompt {
background: #292a2d;
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .ygt-gnews-prompt__title {
color: #e8eaed;
}
[data-theme="dark"] .ygt-gnews-prompt__subtitle {
color: #9aa0a6;
}
[data-theme="dark"] .ygt-gnews-prompt__close {
color: #9aa0a6;
}
[data-theme="dark"] .ygt-gnews-prompt__close:hover {
background: rgba(255, 255, 255, 0.1);
color: #e8eaed;
}
[data-theme="dark"] .ygt-gnews-prompt__btn--secondary {
border-color: #5f6368;
color: #9aa0a6;
}
[data-theme="dark"] .ygt-gnews-prompt__btn--secondary:hover {
background: rgba(255, 255, 255, 0.05);
}
/* Mobile adjustments */
@media (max-width: 480px) {
.ygt-gnews-prompt {
left: 16px;
right: 16px;
bottom: 16px;
max-width: none;
}
}
/* Hide when install banner or notification modal is visible */
body.has-install-banner .ygt-gnews-prompt,
body.has-notification-modal .ygt-gnews-prompt {
opacity: 0;
pointer-events: none;
}
/* ============================================
NO RESULTS PAGE - FIX CATEGORY LINKS
============================================ */
.ygt-no-posts__categories {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
margin-top: 16px;
}
.ygt-no-posts__categories a {
display: inline-block;
padding: 8px 16px;
background: var(--ygt-bg-secondary);
color: var(--ygt-text-primary);
border-radius: 20px;
font-size: 13px;
font-weight: 500;
text-decoration: none;
transition: all 0.2s ease;
}
.ygt-no-posts__categories a:hover {
background: var(--ygt-primary);
color: white;
}
/* ============================================
MOBILE COMPACT AUTHOR PROFILE
============================================ */
@media (max-width: 480px) {
/* Mobile: Full flexbox column layout - everything stacks vertically */
.ygt-author-profile {
display: flex !important;
flex-direction: column;
padding: 16px;
margin-bottom: 16px;
gap: 0;
}
/* Main section: horizontal layout with avatar + info side by side */
.ygt-author-profile__main {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 12px;
margin-bottom: 12px;
text-align: left;
}
.ygt-author-profile__avatar {
flex-shrink: 0;
}
.ygt-author-profile__avatar img {
width: 60px;
height: 60px;
border-width: 2px;
}
.ygt-author-profile__info {
flex: 1;
min-width: 0;
}
.ygt-author-profile__badge {
font-size: 8px;
padding: 2px 6px;
margin-bottom: 4px;
}
.ygt-author-profile__name {
font-size: 1rem;
margin-bottom: 2px;
}
.ygt-author-profile__bio {
font-size: 11px;
margin-bottom: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.3;
}
.ygt-author-profile__since {
font-size: 10px;
margin-bottom: 6px;
}
.ygt-author-profile__social {
gap: 4px;
margin-bottom: 6px;
}
.ygt-author-profile__social a {
width: 24px;
height: 24px;
}
.ygt-author-profile__social a svg {
width: 10px;
height: 10px;
}
.ygt-author-profile__follow {
padding: 6px 14px;
font-size: 11px;
}
/* Stats: Inline horizontal row */
.ygt-author-profile__stats {
display: flex !important;
flex-direction: row;
justify-content: space-around;
grid-template-columns: unset;
gap: 4px;
padding: 10px 0;
margin: 0;
min-width: unset;
background: transparent;
border-top: 1px solid var(--ygt-border);
border-bottom: 1px solid var(--ygt-border);
border-radius: 0;
}
.ygt-author-profile__stat {
text-align: center;
flex: 1;
}
.ygt-author-profile__stat-value {
font-size: 1rem;
}
.ygt-author-profile__stat-label {
font-size: 7px;
}
/* Categories: Compact horizontal wrap */
.ygt-author-profile__categories {
padding-top: 10px;
gap: 4px;
border-top: none;
}
.ygt-author-profile__categories-label {
font-size: 9px;
}
.ygt-author-profile__category {
padding: 2px 6px;
font-size: 9px;
}
.ygt-author-profile__category span {
font-size: 7px;
padding: 1px 3px;
}
}
/* ============================================
COMPACT ARTICLE CARDS - MOBILE ONLY
Desktop styles are preserved, only mobile gets compact treatment
============================================ */
/* Tablet and Mobile specific compactness */
@media (max-width: 768px) {
/* COMPACT MOBILE LAYOUT - smaller text, smaller thumbnails */
/* Show sidebar below content on mobile */
.ygt-sidebar-1 {
display: block;
margin-top: 20px;
}
/* Card compactness for tablet - MUCH SMALLER */
.ygt-card {
gap: 10px;
padding: 8px 0;
}
.ygt-card__thumbnail,
.ygt-card__image {
width: 100px !important;
min-width: 100px !important;
max-width: 100px !important;
height: 56px !important;
max-height: 56px !important;
flex-shrink: 0;
overflow: hidden;
}
.ygt-card__image img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
.ygt-card__title {
font-size: 12px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 2px;
}
.ygt-card__meta {
font-size: 10px;
gap: 6px;
}
.ygt-card__content {
padding: 0;
}
.ygt-card__category {
font-size: 9px;
padding: 2px 5px;
}
.ygt-card__excerpt {
display: none;
}
/* Author sections - compact */
.ygt-author-section {
margin-bottom: 16px;
}
.ygt-author-section .ygt-section-title {
font-size: 11px;
margin-bottom: 10px;
}
.ygt-posts--horizontal {
grid-template-columns: 1fr;
gap: 6px;
}
/* Mini cards - compact */
.ygt-mini-card {
padding: 6px;
}
.ygt-mini-card__image {
width: 50px;
height: 35px;
}
.ygt-mini-card__title {
font-size: 11px;
line-height: 1.25;
}
/* Sidebar widgets on mobile */
.ygt-sidebar-item {
padding: 8px 0;
}
.ygt-sidebar-item__image {
width: 50px;
height: 35px;
}
.ygt-sidebar-item__title {
font-size: 11px;
line-height: 1.3;
}
/* Featured section - compact */
.ygt-featured__slide-title {
font-size: 1rem;
}
.ygt-featured__slide-content {
padding: 12px;
}
/* Section titles */
.ygt-section-title {
font-size: 12px;
margin-bottom: 10px;
}
/* Container padding */
.ygt-container {
padding: 0 10px;
}
/* SINGLE ARTICLE - Compact top spacing on mobile */
.ygt-article {
padding-top: 5px;
}
.ygt-article__header {
margin-bottom: 10px;
}
.ygt-article__category {
padding: 3px 10px;
font-size: 9px;
margin-bottom: 5px;
}
.ygt-article__title {
font-size: 22px;
margin-bottom: 8px;
line-height: 1.25;
}
/* BYLINE - One liner on mobile */
.ygt-article__meta {
gap: 4px;
font-size: 11px;
padding-bottom: 5px;
}
.ygt-article__author {
gap: 4px;
}
.ygt-article__author img {
width: 20px;
height: 20px;
}
.ygt-article__author-name::after {
margin: 0 3px;
}
.ygt-article__share {
gap: 4px;
}
.ygt-article__share-btn {
width: 24px;
height: 24px;
}
/* TTS Widget - Mobile Compact */
.ygt-tts__controls {
padding: 8px 10px;
gap: 6px;
}
.ygt-tts__play,
.ygt-tts__stop {
width: 28px;
height: 28px;
}
.ygt-tts__play svg,
.ygt-tts__stop svg {
width: 12px;
height: 12px;
}
.ygt-tts__spinner,
.ygt-tts__spinner > div {
width: 12px;
height: 12px;
}
.ygt-tts__wave {
height: 16px;
gap: 1.5px;
}
.ygt-tts__wave span {
width: 2.5px;
}
.ygt-tts__status {
font-size: 11px;
}
.ygt-tts__time {
font-size: 10px;
}
.ygt-tts__voice-toggle {
width: 24px;
height: 24px;
}
.ygt-tts__voice-toggle svg {
width: 12px;
height: 12px;
}
.ygt-tts__speed {
min-width: 30px;
height: 20px;
font-size: 10px;
padding: 0 6px;
}
.ygt-tts__voice-panel--open {
padding: 6px 10px 8px;
}
.ygt-tts__voice-select {
height: 28px;
font-size: 11px;
}
.ygt-tts__voice-label {
font-size: 10px;
}
.ygt-tts__progress {
height: 2px;
}
/* Featured image - reduced margin */
.ygt-article__featured-image {
margin-bottom: 10px;
}
/* ARTICLE CONTENT - 20% smaller on mobile */
.ygt-article__content {
font-size: 14px;
/* Reduced from 18px (~22% smaller) */
line-height: 1.4;
}
.ygt-article__content p {
margin-bottom: 14px;
}
.ygt-article__content h2 {
font-size: 18px;
/* Reduced from 26px */
margin: 20px 0 12px;
}
.ygt-article__content h3 {
font-size: 16px;
/* Reduced from 22px */
margin: 16px 0 10px;
}
.ygt-article__content h4 {
font-size: 14px;
}
/* TAGS - Smaller on mobile */
.ygt-article__tags {
gap: 5px;
margin: 16px 0;
padding: 12px 0;
}
.ygt-article__tag {
padding: 4px 10px;
font-size: 9px;
border-radius: 12px;
}
/* IN-ARTICLE ADS - Force side-by-side */
.ygt-article-ad-container {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
gap: 6px !important;
justify-content: center;
}
.ygt-article-ad-wrapper--pair .ygt-article-ad {
width: 48% !important;
max-width: 48% !important;
flex: 0 0 48% !important;
}
.ygt-article-ad img {
width: 100%;
height: auto;
object-fit: contain;
}
/* GADGET REVIEWS - Better looking ads on mobile */
/* Ads are more compact with whitespace, not stretched full-width */
.ygt-cat-gadget-reviews .ygt-article-ad-container {
flex-direction: column !important;
/* Stack vertically in reviews */
align-items: center;
gap: 20px !important;
}
.ygt-cat-gadget-reviews .ygt-article-ad-wrapper--pair .ygt-article-ad,
.ygt-cat-gadget-reviews .ygt-article-ad-wrapper--single .ygt-article-ad {
width: 80% !important;
max-width: 280px !important;
flex: none !important;
margin: 0 auto;
}
.ygt-cat-gadget-reviews .ygt-article-ad-wrapper {
background: #fafafa;
padding: 16px;
border-radius: 12px;
margin: 16px 0;
}
.ygt-cat-gadget-reviews .ygt-article-ad img {
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
}
/* Small phone specific compactness - ULTRA COMPACT */
@media (max-width: 480px) {
.ygt-card {
gap: 8px;
padding: 6px 0;
}
.ygt-card__thumbnail,
.ygt-card__image {
width: 80px !important;
min-width: 80px !important;
max-width: 80px !important;
height: 45px !important;
max-height: 45px !important;
}
.ygt-card__image img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
.ygt-card__title {
font-size: 11px;
-webkit-line-clamp: 2;
}
.ygt-card__meta {
font-size: 9px;
}
.ygt-card__excerpt {
display: none;
}
/* Activity items */
.ygt-activity-item {
padding: 8px 10px;
}
.ygt-activity-item__text {
font-size: 12px;
}
.ygt-activity-item__date {
font-size: 10px;
}
.ygt-author-activities {
gap: 6px;
}
}
/* ==========================================================================
IN-ARTICLE AD CONTAINERS (SEO-Optimized)
========================================================================== */
.ygt-article-ad-wrapper {
margin: 24px auto;
text-align: center;
}
.ygt-article-ad-container {
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
}
/* Single ad - centered */
.ygt-article-ad-wrapper--single .ygt-article-ad {
max-width: 100%;
}
/* Pair of ads - side by side on desktop */
.ygt-article-ad-wrapper--pair .ygt-article-ad-container {
display: flex;
gap: 16px;
}
.ygt-article-ad-wrapper--pair .ygt-article-ad {
flex: 1;
max-width: 50%;
}
/* Ad styles - ensure clickability */
.ygt-article-ad {
display: inline-block;
}
.ygt-article-ad a {
display: block;
}
/* Ensure ad images are clickable - NOT lightbox */
.ygt-article-ad img,
.ygt-ad-slot img,
[data-ad-id] img {
cursor: pointer !important;
max-width: 100%;
height: auto;
}
/* Remove zoom cursor from ad images (lightbox prevention) */
.ygt-article-ad-wrapper img,
.ygt-ad-slot img,
.advertisement img,
[data-ad-id] img {
cursor: pointer !important;
}
/* Mobile: Stack ads vertically */
@media (max-width: 768px) {
.ygt-article-ad-wrapper--pair .ygt-article-ad-container {
flex-direction: column;
align-items: center;
}
.ygt-article-ad-wrapper--pair .ygt-article-ad {
max-width: 100%;
flex: none;
}
}
/* ==========================================================================
AUTHORS LEADERBOARD PAGE
========================================================================== */
.ygt-authors-header {
text-align: center;
padding: 40px 0;
margin-bottom: 40px;
border-bottom: 1px solid var(--ygt-border);
}
.ygt-authors-title {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 8px;
background: linear-gradient(135deg, #FF6B35, #FF8E53);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.ygt-authors-subtitle {
font-size: 1.1rem;
color: var(--ygt-text-muted);
margin-bottom: 30px;
}
.ygt-authors-stats {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
}
.ygt-authors-stat {
text-align: center;
}
.ygt-authors-stat__number {
display: block;
font-size: 2rem;
font-weight: 800;
color: var(--ygt-primary);
}
.ygt-authors-stat__label {
font-size: 0.85rem;
color: var(--ygt-text-muted);
text-transform: uppercase;
letter-spacing: 1px;
}
/* Section */
.ygt-authors-section {
margin-bottom: 50px;
}
.ygt-authors-section__title {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 8px;
}
.ygt-authors-section__icon {
font-size: 1.3rem;
}
.ygt-authors-section__badge {
background: var(--ygt-primary);
color: white;
font-size: 0.75rem;
padding: 4px 10px;
border-radius: 20px;
font-weight: 600;
}
.ygt-authors-section__desc {
color: var(--ygt-text-muted);
margin-bottom: 20px;
}
/* Authors Grid */
.ygt-authors-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
/* Author Card */
.ygt-author-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 24px 20px;
background: var(--ygt-bg-card);
border: 1px solid var(--ygt-border);
border-radius: 16px;
transition: all 0.3s ease;
position: relative;
text-decoration: none;
}
.ygt-author-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
border-color: var(--ygt-primary);
}
.ygt-author-card--top {
border: 2px solid;
}
.ygt-author-card--top:nth-child(1) {
border-color: #FFD700;
background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, transparent 100%);
}
.ygt-author-card--top:nth-child(2) {
border-color: #C0C0C0;
background: linear-gradient(180deg, rgba(192, 192, 192, 0.08) 0%, transparent 100%);
}
.ygt-author-card--top:nth-child(3) {
border-color: #CD7F32;
background: linear-gradient(180deg, rgba(205, 127, 50, 0.08) 0%, transparent 100%);
}
.ygt-author-card__rank {
position: absolute;
top: -10px;
right: -10px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: var(--ygt-bg-alt);
border-radius: 50%;
font-size: 0.85rem;
font-weight: 700;
color: var(--ygt-text-muted);
border: 2px solid var(--ygt-border);
}
.ygt-author-card__rank--1,
.ygt-author-card__rank--2,
.ygt-author-card__rank--3 {
font-size: 1.2rem;
background: white;
border: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ygt-author-card__avatar {
margin-bottom: 12px;
}
.ygt-author-card__avatar img {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--ygt-border);
}
.ygt-author-card__name {
font-size: 1.1rem;
font-weight: 700;
color: var(--ygt-text);
margin-bottom: 4px;
}
.ygt-author-card__role {
font-size: 0.8rem;
color: var(--ygt-primary);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 16px;
}
.ygt-author-card__stats {
display: flex;
gap: 24px;
margin-bottom: 12px;
}
.ygt-author-card__stat {
text-align: center;
}
.ygt-author-card__stat-value {
display: block;
font-size: 1.3rem;
font-weight: 800;
color: var(--ygt-text);
}
.ygt-author-card__stat-label {
font-size: 0.7rem;
color: var(--ygt-text-muted);
text-transform: uppercase;
}
.ygt-author-card__latest {
font-size: 0.75rem;
color: var(--ygt-text-muted);
background: var(--ygt-bg-alt);
padding: 6px 12px;
border-radius: 20px;
}
.ygt-author-card__latest-label {
margin-right: 4px;
}
/* Contributors List */
.ygt-contributors-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.ygt-contributor-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--ygt-bg-card);
border: 1px solid var(--ygt-border);
border-radius: 10px;
text-decoration: none;
transition: all 0.2s ease;
}
.ygt-contributor-item:hover {
background: var(--ygt-bg-alt);
border-color: var(--ygt-primary);
}
.ygt-contributor-item__rank {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
background: var(--ygt-bg-alt);
border-radius: 50%;
font-size: 0.75rem;
font-weight: 700;
color: var(--ygt-text-muted);
flex-shrink: 0;
}
.ygt-contributor-item__avatar {
flex-shrink: 0;
}
.ygt-contributor-item__avatar img {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.ygt-contributor-item__info {
flex: 1;
min-width: 0;
}
.ygt-contributor-item__name {
display: block;
font-weight: 600;
color: var(--ygt-text);
font-size: 0.95rem;
}
.ygt-contributor-item__count {
font-size: 0.8rem;
color: var(--ygt-text-muted);
}
.ygt-contributor-item__date {
font-size: 0.75rem;
color: var(--ygt-text-muted);
white-space: nowrap;
}
/* Mobile */
@media (max-width: 768px) {
.ygt-authors-header {
padding: 24px 0;
}
.ygt-authors-title {
font-size: 1.75rem;
}
.ygt-authors-subtitle {
font-size: 0.95rem;
}
.ygt-authors-stats {
gap: 24px;
}
.ygt-authors-stat__number {
font-size: 1.5rem;
}
.ygt-authors-grid {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 12px;
}
.ygt-author-card {
padding: 16px;
}
.ygt-author-card__avatar img {
width: 60px;
height: 60px;
}
.ygt-contributor-item {
padding: 10px 12px;
}
.ygt-contributor-item__date {
display: none;
}
}
/* ==========================================================================
MOBILE COMPACT: Comments Section
========================================================================== */
@media (max-width: 768px) {
.ygt-comments {
margin-top: 24px;
}
.ygt-comments__title {
font-size: 14px;
margin-bottom: 12px;
}
.ygt-comment,
.comment {
margin-bottom: 10px;
padding-bottom: 8px;
}
.ygt-comment__wrapper {
gap: 8px;
}
.ygt-comment__avatar {
width: 26px;
height: 26px;
font-size: 10px;
}
.ygt-comment__author {
font-size: 11px;
}
.ygt-comment__date {
font-size: 10px;
}
.ygt-comment__content {
font-size: 12px;
line-height: 1.5;
margin-bottom: 5px;
}
.ygt-comment__content p {
margin: 0 0 5px;
}
.ygt-comment__actions {
gap: 2px;
}
.ygt-comment__action {
font-size: 10px;
padding: 2px 4px;
}
.ygt-comment-form {
margin-top: 16px;
padding: 12px;
}
.ygt-comment-form__title {
font-size: 13px;
margin-bottom: 8px;
}
.ygt-comment-form__field textarea {
min-height: 60px;
font-size: 13px;
padding: 8px;
}
.ygt-comment-form__submit {
padding: 8px 16px;
font-size: 12px;
}
}
/* ==========================================================================
MOBILE COMPACT: Related Articles
========================================================================== */
@media (max-width: 768px) {
.ygt-related {
margin-top: 20px;
}
.ygt-related__title {
font-size: 13px;
margin-bottom: 12px;
padding-bottom: 6px;
}
.ygt-related__grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.ygt-related__item-image {
margin-bottom: 6px;
}
.ygt-related__item-title {
font-size: 11px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Compact variant on mobile */
.ygt-related--compact {
margin: 16px 0;
padding: 12px 0;
}
.ygt-related--compact .ygt-related__title {
font-size: 12px;
margin-bottom: 10px;
}
.ygt-related--compact .ygt-related__grid {
gap: 8px;
}
.ygt-related--compact .ygt-related__item-title {
font-size: 10px;
}
}
/* ==========================================================================
Table Styling (Article Content) - Responsive & Compact
========================================================================== */
/* Table container for horizontal scroll on mobile */
.ygt-article__content figure.wp-block-table,
.ygt-article__content .wp-block-table,
.entry-content .wp-block-table,
article .wp-block-table {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 20px 0;
}
/* Base table styling */
.ygt-article__content table,
.entry-content table,
.bde-post-content table,
article table,
.wp-block-table table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
line-height: 1.4;
border: 1px solid #e5e7eb;
border-radius: 8px;
overflow: hidden;
}
/* Table header */
.ygt-article__content table thead,
.entry-content table thead,
article table thead,
.wp-block-table thead {
background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.ygt-article__content table th,
.entry-content table th,
article table th,
.wp-block-table th {
padding: 10px 12px;
text-align: left;
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.3px;
color: white;
white-space: nowrap;
border: none;
}
/* Table body cells */
.ygt-article__content table td,
.entry-content table td,
.bde-post-content table td,
.bde-rich-text-element table td,
article table td,
.wp-block-table td,
table.wp-block-table td {
padding: 8px 12px;
border-bottom: 1px solid #f0f0f0;
color: #374151;
vertical-align: top;
font-size: 12px;
line-height: 1.5;
}
/* Zebra striping */
.ygt-article__content table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
article table tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
background-color: #fafafa;
}
/* Row hover */
.ygt-article__content table tbody tr:hover,
.entry-content table tbody tr:hover,
article table tbody tr:hover,
.wp-block-table tbody tr:hover {
background-color: #fff7ed;
}
/* First column - model names */
.ygt-article__content table td:first-child,
.entry-content table td:first-child,
.bde-post-content table td:first-child,
article table td:first-child,
.wp-block-table td:first-child {
font-weight: 600;
color: #111827;
white-space: nowrap;
}
/* Links in tables */
.ygt-article__content table a,
.entry-content table a,
article table a,
.wp-block-table a {
color: #f97316;
text-decoration: none;
font-weight: 600;
}
.ygt-article__content table a:hover,
.entry-content table a:hover,
article table a:hover,
.wp-block-table a:hover {
text-decoration: underline;
}
/* Configuration column - allow wrapping */
.ygt-article__content table td:nth-child(2),
.entry-content table td:nth-child(2),
article table td:nth-child(2),
.wp-block-table td:nth-child(2) {
min-width: 150px;
white-space: normal;
font-size: 11px;
color: #6b7280;
line-height: 1.4;
}
/* Price column */
.ygt-article__content table td:nth-child(3),
.entry-content table td:nth-child(3),
article table td:nth-child(3),
.wp-block-table td:nth-child(3) {
white-space: nowrap;
font-weight: 500;
color: #059669;
}
/* Date column */
.ygt-article__content table td:nth-child(4),
.entry-content table td:nth-child(4),
article table td:nth-child(4),
.wp-block-table td:nth-child(4) {
white-space: nowrap;
color: #6b7280;
font-size: 11px;
}
/* Mobile responsive */
@media (max-width: 768px) {
.ygt-article__content table,
.entry-content table,
article table,
.wp-block-table table {
font-size: 11px;
min-width: 600px;
}
.ygt-article__content table th,
.entry-content table th,
article table th,
.wp-block-table th {
padding: 8px 10px;
font-size: 10px;
}
.ygt-article__content table td,
.entry-content table td,
article table td,
.wp-block-table td {
padding: 6px 10px;
font-size: 11px;
}
}
/* ==========================================================================
AI Curated Answer Card (Search Results)
========================================================================== */
.ygt-ai-answer {
margin-bottom: 24px;
}
.ygt-ai-answer__container {
background: linear-gradient(135deg, rgba(249, 115, 22, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
border: 1px solid rgba(249, 115, 22, 0.15);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(249, 115, 22, 0.08);
}
.ygt-ai-answer__header {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 20px;
background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(249, 115, 22, 0.02) 100%);
border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}
.ygt-ai-answer__icon {
font-size: 20px;
animation: ygt-sparkle 2s ease-in-out infinite;
}
@keyframes ygt-sparkle {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
}
.ygt-ai-answer__label {
font-size: 14px;
font-weight: 600;
color: #ea580c;
letter-spacing: -0.3px;
}
.ygt-ai-answer__badge {
margin-left: auto;
padding: 3px 10px;
background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
color: white;
font-size: 10px;
font-weight: 700;
border-radius: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Loading state */
.ygt-ai-answer__loading {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 40px 20px;
color: #6b7280;
font-size: 13px;
}
.ygt-ai-answer__loading-dots {
display: flex;
gap: 4px;
}
.ygt-ai-answer__loading-dots span {
width: 8px;
height: 8px;
background: #f97316;
border-radius: 50%;
animation: ygt-bounce 1.4s ease-in-out infinite both;
}
.ygt-ai-answer__loading-dots span:nth-child(1) {
animation-delay: -0.32s;
}
.ygt-ai-answer__loading-dots span:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes ygt-bounce {
0%,
80%,
100% {
transform: scale(0.6);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
}
/* Content */
.ygt-ai-answer__content {
padding: 20px;
}
.ygt-ai-answer__summary {
font-size: 15px;
line-height: 1.7;
color: #374151;
margin-bottom: 20px;
}
.ygt-ai-answer__summary p {
margin-bottom: 12px;
}
.ygt-ai-answer__summary p:last-child {
margin-bottom: 0;
}
/* Citation links */
.ygt-ai-citation {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
padding: 0 6px;
margin: 0 2px;
background: rgba(249, 115, 22, 0.1);
color: #ea580c;
font-size: 11px;
font-weight: 600;
border-radius: 4px;
text-decoration: none;
transition: all 0.2s ease;
}
.ygt-ai-citation:hover {
background: #f97316;
color: white;
transform: translateY(-2px);
}
/* Recommendations */
.ygt-ai-answer__recommendations {
border-top: 1px solid rgba(249, 115, 22, 0.1);
padding-top: 16px;
}
.ygt-ai-answer__recommendations h4 {
font-size: 13px;
font-weight: 600;
color: #374151;
margin-bottom: 12px;
}
.ygt-ai-answer__articles {
display: flex;
flex-direction: column;
gap: 8px;
}
.ygt-ai-article {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
background: rgba(249, 115, 22, 0.03);
border: 1px solid rgba(249, 115, 22, 0.08);
border-radius: 10px;
text-decoration: none;
transition: all 0.2s ease;
}
.ygt-ai-article:hover {
background: rgba(249, 115, 22, 0.08);
border-color: rgba(249, 115, 22, 0.2);
transform: translateX(4px);
}
.ygt-ai-article img {
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
}
.ygt-ai-article__content {
flex: 1;
min-width: 0;
}
.ygt-ai-article__number {
display: inline-block;
padding: 2px 6px;
background: #f97316;
color: white;
font-size: 10px;
font-weight: 700;
border-radius: 4px;
margin-right: 8px;
}
.ygt-ai-article__title {
display: block;
font-size: 13px;
font-weight: 500;
color: #1f2937;
margin-top: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ygt-ai-article__meta {
display: block;
font-size: 11px;
color: #6b7280;
margin-top: 2px;
}
/* Footer */
.ygt-ai-answer__footer {
padding: 12px 20px;
background: rgba(0, 0, 0, 0.02);
border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.ygt-ai-answer__footer small {
font-size: 11px;
color: #9ca3af;
}
/* Mobile Responsive */
@media (max-width: 768px) {
.ygt-ai-answer__container {
border-radius: 12px;
}
.ygt-ai-answer__header {
padding: 12px 16px;
}
.ygt-ai-answer__label {
font-size: 12px;
}
.ygt-ai-answer__content {
padding: 16px;
}
.ygt-ai-answer__summary {
font-size: 14px;
}
.ygt-ai-article {
padding: 8px 12px;
}
.ygt-ai-article img {
width: 40px;
height: 40px;
}
.ygt-ai-article__title {
font-size: 12px;
white-space: normal;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
}
}