/* =============================================
   3 Patti Lucky PK - Main Stylesheet
   Mobile-First, SEO Optimized
   ============================================= */

:root {
  --primary: #1a472a;
  --primary-dark: #0d2b18;
  --primary-light: #2d6a4f;
  --accent: #f4b942;
  --accent-dark: #d4941a;
  --accent-light: #ffd166;
  --red: #c0392b;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #1a1a2e;
  --text: #2d3436;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo span { color: var(--accent); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(244,185,66,0.2);
  color: var(--accent);
}

.nav-download-btn {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
}

.nav-download-btn:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  background: var(--primary-dark);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  color: rgba(255,255,255,0.9);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a:hover { background: rgba(244,185,66,0.15); color: var(--accent); }

.mobile-nav.open { display: flex; }

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

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1b5e20 100%);
  color: var(--white);
  padding: 60px 16px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244,185,66,0.05) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

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

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(244,185,66,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-app-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-stat strong {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 800;
}

.app-stat span { font-size: 0.8rem; opacity: 0.8; }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(244,185,66,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(244,185,66,0.5);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

.btn-green {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(39,174,96,0.3);
}

.btn-green:hover { transform: translateY(-2px); color: white; }

/* =============================================
   DOWNLOAD SECTION
   ============================================= */

.download-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 60px 16px;
  text-align: center;
}

.download-section h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 12px;
}

.download-section p {
  color: rgba(26,71,42,0.8);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.step-card {
  background: rgba(255,255,255,0.9);
  padding: 24px 16px;
  border-radius: var(--radius);
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 12px;
  font-size: 1.1rem;
}

.step-card h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 6px; }
.step-card p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* =============================================
   SECTIONS & LAYOUT
   ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 60px 16px; }
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: rgba(26,71,42,0.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   CARDS GRID
   ============================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cards-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.card-body { padding: 20px; }

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

/* =============================================
   FEATURES GRID
   ============================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 30px rgba(26,71,42,0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.9rem; color: var(--gray); }

/* =============================================
   CATEGORIES
   ============================================= */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.category-card:hover .category-count { color: rgba(255,255,255,0.7); }
.category-card:hover .category-name { color: white; }

.category-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.category-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.category-count { font-size: 0.82rem; color: var(--gray); }

/* =============================================
   ARTICLE PAGE
   ============================================= */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
  align-items: start;
}

.article-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 50px 16px 60px;
}

.article-header .container { max-width: 900px; }

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-breadcrumb a { color: rgba(255,255,255,0.7); }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb span { color: rgba(255,255,255,0.4); }
.article-breadcrumb .current { color: var(--accent); }

.article-category-badge {
  display: inline-block;
  background: rgba(244,185,66,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.article-description {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 700px;
}

/* Article Content */

.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}

.article-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
  color: #444;
  font-size: 0.97rem;
}

.article-content ul, .article-content ol {
  margin: 12px 0 20px 20px;
}

.article-content li {
  margin-bottom: 8px;
  color: #444;
  font-size: 0.97rem;
}

.article-content img {
  border-radius: var(--radius-sm);
  margin: 20px auto;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.article-content .highlight-box {
  background: linear-gradient(135deg, rgba(26,71,42,0.08) 0%, rgba(45,106,79,0.05) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.article-content .warning-box {
  background: rgba(192,57,43,0.08);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.article-content .tip-box {
  background: rgba(244,185,66,0.12);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.step-list { list-style: none; margin-left: 0 !important; }
.step-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.step-badge {
  min-width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pros Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.pros-list, .cons-list {
  padding: 20px;
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0 !important;
}

.pros-list {
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.3);
}

.cons-list {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.3);
}

.pros-list h4 { color: #27ae60; margin-bottom: 12px; font-size: 1rem; }
.cons-list h4 { color: var(--red); margin-bottom: 12px; font-size: 1rem; }

.pros-list li, .cons-list li {
  font-size: 0.9rem !important;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px !important;
}

.pros-list li::before { content: '✓'; color: #27ae60; position: absolute; left: 0; font-weight: 700; }
.cons-list li::before { content: '✗'; color: var(--red); position: absolute; left: 0; font-weight: 700; }

/* FAQ */
.faq-section { margin: 32px 0; }
.faq-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.2s;
  font-size: 0.95rem;
  color: var(--dark);
}

.faq-question:hover { background: var(--light); }

.faq-question.active {
  background: var(--primary);
  color: white;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 0.92rem;
  color: #555;
}

.faq-answer.open {
  max-height: 400px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.faq-arrow { font-size: 1rem; transition: transform 0.3s; }
.faq-question.active .faq-arrow { transform: rotate(180deg); }

/* App Info Box */
.app-info-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  text-align: center;
}

.app-info-box img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto 16px;
}

.app-info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.app-stat-item strong { display: block; font-size: 1.2rem; color: var(--accent); }
.app-stat-item span { font-size: 0.8rem; opacity: 0.8; }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.sidebar-download {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  text-align: center;
}

.sidebar-download .widget-title { color: white; border-color: var(--accent); }
.sidebar-download img { width: 70px; height: 70px; border-radius: 14px; margin: 0 auto 16px; }
.sidebar-download p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }

.related-list { list-style: none; }
.related-list li { margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.related-list li:last-child { margin-bottom: 0; border: none; padding: 0; }
.related-list a { font-size: 0.9rem; font-weight: 600; color: var(--primary); display: block; margin-bottom: 2px; }
.related-list a:hover { color: var(--accent-dark); }
.related-list span { font-size: 0.78rem; color: var(--gray); }

/* Table of Contents */
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { font-size: 0.88rem; color: var(--primary); display: flex; gap: 8px; align-items: center; }
.toc-list a::before { content: '→'; color: var(--accent); font-weight: 700; }
.toc-list a:hover { color: var(--accent-dark); }

/* App Details Widget */
.app-details-list { list-style: none; }
.app-details-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.app-details-list li:last-child { border: none; }
.app-details-list li strong { color: var(--dark); }
.app-details-list li span { color: var(--gray); }

/* =============================================
   SCREENSHOTS GALLERY
   ============================================= */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.screenshot-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
}

.screenshot-item:hover { transform: scale(1.03); }
.screenshot-item img { width: 100%; height: 280px; object-fit: cover; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* =============================================
   CATEGORY PAGE
   ============================================= */

.category-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 50px 16px;
  text-align: center;
}

.category-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.category-header p { opacity: 0.9; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* =============================================
   RATINGS
   ============================================= */

.stars { color: var(--accent); letter-spacing: 2px; }

.rating-box {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.rating-score { font-size: 3rem; font-weight: 900; color: var(--primary); }
.rating-count { font-size: 0.85rem; color: var(--gray); }

/* =============================================
   TABLE
   ============================================= */

.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.content-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.content-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: #444;
}

.content-table tr:nth-child(even) td { background: var(--light); }

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
}

.footer-top {
  padding: 60px 16px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--accent); }

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: var(--gray); }
.breadcrumb .current { color: var(--gray); }

/* =============================================
   PAGE SPECIFIC
   ============================================= */

.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 60px 16px;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.page-header p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 16px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 30px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.page-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 10px; }
.page-content p { margin-bottom: 14px; color: #444; font-size: 0.97rem; }
.page-content ul, .page-content ol { margin: 10px 0 16px 20px; }
.page-content li { margin-bottom: 6px; color: #444; font-size: 0.95rem; }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* =============================================
   SITEMAP PAGE
   ============================================= */

.sitemap-section { margin-bottom: 32px; }
.sitemap-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.sitemap-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.sitemap-links li a { color: var(--text); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.sitemap-links li a:hover { color: var(--primary); }
.sitemap-links li a::before { content: '›'; color: var(--accent); font-size: 1rem; }

/* =============================================
   STATS ROW
   ============================================= */

.stats-row {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 40px 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

.stat-item span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.testimonial-card p {
  font-size: 0.92rem;
  color: #555;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-loc { font-size: 0.78rem; color: var(--gray); }

/* =============================================
   NOTICE BAR
   ============================================= */

.notice-bar {
  background: var(--accent);
  color: var(--primary-dark);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.notice-bar a { color: var(--primary-dark); text-decoration: underline; }

/* =============================================
   BACK TO TOP
   ============================================= */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 20px 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pros-cons { grid-template-columns: 1fr; }

  .app-info-stats { grid-template-columns: repeat(3,1fr); }

  .article-content { padding: 20px; }

  .sidebar-widget { display: block; }

  .article-sidebar {
    order: -1;
  }

  .screenshots-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .hero { padding: 40px 16px 60px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .app-info-stats { grid-template-columns: repeat(3,1fr); }
}

/* =============================================
   UTILITY
   ============================================= */

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

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

/* Print */
@media print {
  .site-header, .site-footer, .article-sidebar, .back-to-top { display: none; }
  .article-layout { grid-template-columns: 1fr; }
}
