/*
Theme Name: Androfy
Theme URI: https://androfy.com
Author: Androfy Team
Author URI: https://androfy.com
Description: A professional Material Design WordPress theme for Androfy - Android Apps Review & Tech Blog
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: androfy
Tags: material-design, blog, tech, android, apps, review, two-columns, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* ============================================
   CSS VARIABLES - LIGHT THEME DEFAULT
   ============================================ */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --secondary: #00c853;
  --accent: #ff6d00;
  --surface: #ffffff;
  --surface-variant: #f5f7fa;
  --surface-2: #eef1f6;
  --surface-3: #e3e8f0;
  --bg: #f0f2f5;
  --bg-pattern: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  --text: #1a1a2e;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --border: #e0e3e8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 64px;
  --ticker-height: 40px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============================================
   ARTICLE TICKER (ABOVE HERO)
   ============================================ */
.article-ticker {
  background: var(--primary);
  color: #fff;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.ticker-label {
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.ticker-track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  padding-left: 20px;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.ticker-item:hover { color: #ffeb3b; }

.ticker-item .ticker-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--surface);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
  border-radius: 10px;
}

.site-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.site-logo .logo-text span { color: var(--primary); }

.site-logo .logo-dot {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Desktop Nav */
.main-nav { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav li { position: relative; }

.main-nav a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.main-nav a:hover::after { width: 20px; }

.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  color: var(--primary);
  background: var(--primary-light);
}

.main-nav .current-menu-item > a::after { width: 20px; }

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
  border: 1px solid var(--border);
}

.main-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.main-nav .sub-menu a::after { display: none; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--surface-variant);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
  position: relative;
}

.header-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active { opacity: 1; }

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--surface);
  z-index: 999;
  padding: 80px 20px 30px;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}

.mobile-nav-drawer.active { right: 0; }

.mobile-nav-drawer a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-drawer a:hover { background: var(--primary-light); color: var(--primary); }

.mobile-nav-drawer .sub-menu { padding-left: 20px; }
.mobile-nav-drawer .sub-menu a { font-size: 14px; font-weight: 500; padding: 10px 16px; }

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.97);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay .search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-overlay .search-close:hover { background: var(--surface-variant); }

.search-form-inner {
  width: 90%;
  max-width: 640px;
  text-align: center;
}

.search-form-inner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.search-form-inner input[type="search"] {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: var(--font-main);
}

.search-form-inner input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,115,232,0.15);
}

.search-form-inner button[type="submit"] {
  display: none;
}

/* ============================================
   HERO SECTION - V3.0 COMPACT WITH PHONE MOCKUP
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 30%, #eef0ff 60%, #f5f0ff 100%);
  background-size: 300% 300%;
  animation: heroBgShift 10s ease infinite;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

/* Animated rainbow top border - PROMINENT */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #00c853, #ff6d00, #e91e63, #6c5ce7, #00bcd4, #1a73e8);
  background-size: 400% 100%;
  animation: heroGradientLine 3s linear infinite;
  z-index: 10;
}

@keyframes heroGradientLine {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}

@keyframes heroBgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Background floating shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.hero-shape-1 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: -80px;
  left: -60px;
  animation: shapeFloat1 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  background: var(--secondary);
  bottom: -60px;
  right: 20%;
  animation: shapeFloat2 10s ease-in-out infinite;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  background: #e91e63;
  top: 20%;
  right: -30px;
  animation: shapeFloat3 7s ease-in-out infinite;
}

@keyframes shapeFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, 15px) scale(1.05); }
  66% { transform: translate(-10px, 25px) scale(0.95); }
}

@keyframes shapeFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -15px) scale(1.1); }
}

@keyframes shapeFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-15px, 10px) rotate(15deg); }
}

/* Hero inner layout - text left, phone right */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Hero Text Content */
.hero-text {
  flex: 1;
  min-width: 0;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: heroBadgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes heroBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(26,115,232,0); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* Hero Title - SINGLE DEFINITION */
.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), #6c5ce7, #e91e63);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradientText 4s ease infinite;
}

@keyframes heroGradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Description */
.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 480px;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,115,232,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ============================================
   PHONE MOCKUP - CSS ONLY
   ============================================ */
.hero-phone {
  position: relative;
  flex-shrink: 0;
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-frame {
  width: 160px;
  height: 300px;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 2px #333, inset 0 0 0 1px #444;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 60px;
  height: 18px;
  background: #1a1a2e;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-notch::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 12px;
  box-shadow: inset 0 0 2px rgba(0,200,255,0.3);
}

.phone-screen {
  background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 100%);
  border-radius: 14px;
  height: calc(100% - 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 8px;
  align-content: start;
  overflow: hidden;
}

.phone-app-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: appIconBounce 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes appIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.92); }
}

.phone-home-btn {
  width: 36px;
  height: 4px;
  background: #555;
  border-radius: 2px;
  margin: 6px auto 0;
}

/* Floating notification bubbles */
.phone-notification {
  position: absolute;
  background: var(--surface);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  z-index: 5;
}

.phone-notification.n1 {
  top: 20px;
  right: -20px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  animation: notifFloat1 3s ease-in-out infinite;
}

.phone-notification.n2 {
  bottom: 40px;
  left: -30px;
  background: linear-gradient(135deg, #ff6d00, #ff9100);
  color: #fff;
  animation: notifFloat2 3.5s ease-in-out infinite;
}

@keyframes notifFloat1 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-5px) translateY(-5px); }
}

@keyframes notifFloat2 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(5px) translateY(-5px); }
}

/* ============================================
   COMPACT STATS BAR
   ============================================ */
.stats-bar {
  background: var(--surface);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #e8f5e9; color: #2e7d32; }
.stat-icon.orange { background: #fff3e0; color: #e65100; }
.stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }

.stat-number {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   SECTION HEADERS - COMPACT
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .title-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--primary-light);
  color: var(--primary);
}

.section-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  margin-left: 12px;
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-link:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.content-area {
  padding: 16px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   FEATURED POSTS - COMPACT
   ============================================ */
.featured-section {
  padding: 12px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-thumb .post-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-thumb .post-date-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.post-card-body {
  padding: 10px;
}

.post-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.post-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ff9800;
  font-weight: 700;
  font-size: 12px;
}

/* Featured Post Card (Larger) */
.featured-card {
  grid-column: span 1;
}

.featured-card .post-card-thumb { aspect-ratio: 16/10; }
.featured-card .post-card-title { font-size: 16px; }

/* ============================================
   CATEGORY SECTIONS - COMPACT
   ============================================ */
.category-section {
  padding: 10px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-post-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.category-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-post-card .post-card-thumb { aspect-ratio: 16/10; }
.category-post-card .post-card-body { padding: 12px; }
.category-post-card .post-card-title { font-size: 13px; margin-bottom: 6px; -webkit-line-clamp: 2; }
.category-post-card .post-card-excerpt { display: none; }
.category-post-card .post-card-meta { font-size: 11px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: widgetFade 0.6s ease-out both;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.3s; }
.sidebar-widget:nth-child(4) { animation-delay: 0.4s; }

@keyframes widgetFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

/* Trending Posts Widget */
.trending-list { display: flex; flex-direction: column; gap: 10px; }

.trending-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.trending-item:hover { background: var(--surface-variant); }

.trending-number {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.trending-item:nth-child(1) .trending-number { background: var(--primary); color: #fff; }
.trending-item:nth-child(2) .trending-number { background: var(--primary-dark); color: #fff; }
.trending-item:nth-child(3) .trending-number { background: #ff9800; color: #fff; }

.trending-info { flex: 1; }

.trending-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Categories Widget */
.category-list { display: flex; flex-direction: column; gap: 6px; }

.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.category-list-item:hover { background: var(--surface-variant); }

.category-list-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list-item a:hover { color: var(--primary); }

.category-count {
  background: var(--surface-variant);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary) 0%, #6c5ce7 100%);
  color: #fff;
  border: none;
  padding: 20px;
}

.newsletter-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
  font-size: 16px;
}

.newsletter-widget .widget-title::before { background: #fff; }

.newsletter-widget p {
  font-size: 13px;
  margin-bottom: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
  transition: var(--transition);
  font-family: var(--font-main);
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input[type="email"]:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); }

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.newsletter-form button:hover { background: #f0f0f0; transform: translateY(-1px); }

/* Social Links Widget */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.social-link:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.youtube { background: #ff0000; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.telegram { background: #0088cc; }
.social-link.rss { background: #ee802f; }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.single-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 21/9;
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-header {
  margin-bottom: 20px;
}

.single-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.single-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.single-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.single-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.single-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}

.single-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.single-content p { margin-bottom: 16px; }

.single-content img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.single-content a { color: var(--primary); text-decoration: underline; }

.single-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.single-content ul, .single-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.single-content li { margin-bottom: 6px; list-style: disc; }
.single-content ol li { list-style: decimal; }

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tag {
  background: var(--surface-variant);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.tag:hover { background: var(--primary-light); color: var(--primary); }

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover { transform: translateY(-2px) scale(1.1); }

/* Author Box */
.author-box {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface-variant);
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.author-info h4 { font-size: 15px; font-weight: 700; }
.author-info p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Related Posts */
.related-posts { margin-top: 24px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a1a2e;
  color: #b0b3b8;
  padding: 24px 0 0;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .footer-logo img { height: 34px; border-radius: 8px; }
.footer-brand .footer-logo-text { font-size: 20px; font-weight: 800; color: #fff; }
.footer-brand .footer-logo-text span { color: var(--primary); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: #8890a0;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8890a0;
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 13px;
  color: #8890a0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: #fff; transform: translateX(4px); }

.footer-bottom {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #5f6368;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   404 PAGE
   ============================================ */
.error404 .content-area {
  text-align: center;
  padding: 60px 16px;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-message {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============================================
   LOAD MORE / PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.page-numbers {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.comment-list { list-style: none; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; float: left; margin-right: 12px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content { font-size: 14px; line-height: 1.6; margin-top: 6px; }

/* ============================================
   WIDGET STYLING
   ============================================ */
.widget { margin-bottom: 16px; }

.widget ul { list-style: none; }

.widget_search .search-form {
  display: flex;
  gap: 6px;
}

.widget_search input[type="search"] {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface-variant);
  outline: none;
  font-family: var(--font-main);
}

.widget_search button {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
}

/* ============================================
   ANIMATIONS (scroll-triggered)
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

.animate-stagger { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Typing animation for hero */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after { width: 300px; height: 300px; }

/* Glow pulse for interactive elements */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(26,115,232,0.2); }
  50% { box-shadow: 0 0 20px rgba(26,115,232,0.4); }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 20px; padding: 0 20px; }
  .hero-phone { display: none; }
  .hero-text { text-align: center; }
  .hero-text .hero-badge { margin-bottom: 8px; }
  .hero-text .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .stats-inner { gap: 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav-overlay, .mobile-nav-drawer { display: block; }
  
  .hero-section { padding: 20px 0; }
  .hero-phone { display: none; }
  .hero-text { text-align: center; }
  .hero-badge { margin: 0 auto 8px; }
  .hero-desc { margin-left: auto; margin-right: auto; margin-bottom: 12px; }
  .hero-buttons { justify-content: center; }
  .phone-notification { display: none; }
  
  .featured-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
  .stat-item { min-width: 45%; }
  
  .single-title { font-size: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  
  .ticker-label { font-size: 10px; padding: 0 10px; }
  .ticker-item { font-size: 11px; padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero-section { padding: 16px 0; }
  .hero-inner { padding: 0 16px; gap: 16px; }
  .hero-title { font-size: 20px; }
  .hero-desc { font-size: 13px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .category-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .error-code { font-size: 80px; }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-variant) 25%, var(--surface-2) 50%, var(--surface-variant) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .site-footer, .sidebar, .back-to-top,
  .scroll-progress, .article-ticker, .hero-section,
  .stats-bar, .share-buttons, .social-grid { display: none; }
  
  .content-grid { grid-template-columns: 1fr; }
  body { background: #fff; font-size: 12pt; }
  .post-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
