/* FoodyApps — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #FF6B35;
  --dark: #1A1A2E;
  --mid: #4A4A6A;
  --light: #F8F8FC;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
body { font-family: var(--font); color: var(--dark); background: var(--light); line-height: 1.6; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { color: var(--white); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.logo span { color: var(--orange); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 6px; font-size: .9rem; transition: background .2s; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,107,53,.15); color: var(--orange); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }
@media(max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--dark); padding: 12px; gap: 2px; }
  .main-nav.open { display: flex; }
}

/* Breadcrumb */
.breadcrumb { background: var(--white); border-bottom: 1px solid #eee; padding: 10px 0; font-size: .85rem; }
.breadcrumb a { color: var(--mid); }
.breadcrumb span { color: var(--mid); margin: 0 4px; }
.breadcrumb .current { color: var(--dark); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #2d1b4e 100%); color: white; padding: 64px 20px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 32px; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-cat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: white; padding: 8px 18px; border-radius: 999px; font-size: .9rem; transition: background .2s; }
.hero-cat:hover { background: var(--orange); text-decoration: none; }

.page-hero { background: var(--dark); color: white; padding: 48px 20px; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; }
.error-page { text-align: center; }

/* Sections */
.section-featured, .section-categories, .section-apps, .section-details, .section-related, .section-compare, .section-faq { padding: 48px 0; }
.section-featured { background: white; }
.section-categories { background: var(--light); }
.section-compare { background: var(--white); }
.section-faq { background: var(--light); }
.section-details { background: var(--white); }
.section-related { background: var(--light); }
section h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--dark); }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* App card */
.app-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: transform .2s, box-shadow .2s; position: relative; border: 1px solid #eee; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.app-card.featured { border-color: var(--orange); }
.featured-label { position: absolute; top: 12px; right: 12px; background: var(--orange); color: white; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.card-icon img { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; object-fit: contain; background: var(--light); }
.card-body { flex: 1; min-width: 0; }
.card-body h3 { font-size: 1rem; margin-bottom: 6px; }
.card-body h3 a { color: var(--dark); }
.card-body h3 a:hover { color: var(--orange); text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.badge { font-size: .72rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge-delivery  { background: #FFF0E8; color: #C94A00; }
.badge-restaurant{ background: #E8F4FF; color: #0057A0; }
.badge-fast-food { background: #FFF8E0; color: #8A6000; }
.badge-grocery   { background: #E8FFE8; color: #1A7A00; }
.badge-meal-kits { background: #F0E8FF; color: #6000A0; }
.badge-recipe    { background: #FFE8F4; color: #A00060; }
.badge-platform  { background: #F0F0F0; color: #444; }
.rating { font-size: .85rem; color: var(--mid); margin-bottom: 6px; }
.stars { color: var(--orange); letter-spacing: -1px; }
.review-count { color: #999; font-size: .8rem; }
.card-desc { font-size: .85rem; color: var(--mid); margin-bottom: 8px; line-height: 1.4; }
.price-label { font-size: .8rem; font-weight: 600; color: #1A7A00; margin-bottom: 10px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn:hover { text-decoration: none; opacity: .9; }
.btn-primary { background: var(--orange); color: white; }
.btn-secondary { background: var(--dark); color: white; }
.btn-ghost { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-large { padding: 12px 24px; font-size: 1rem; }
.btn-small { padding: 4px 10px; font-size: .8rem; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cat-card { background: white; border-radius: var(--radius); padding: 24px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; box-shadow: var(--shadow); transition: transform .2s; text-decoration: none; color: var(--dark); border: 1px solid #eee; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--orange); text-decoration: none; }
.cat-icon { font-size: 2rem; }
.cat-card strong { font-size: .95rem; }
.cat-count { font-size: .8rem; color: var(--mid); }

/* Compare list */
.compare-list { display: flex; flex-wrap: wrap; gap: 12px; }
.compare-link { background: var(--light); border: 1.5px solid #ddd; border-radius: 8px; padding: 12px 20px; color: var(--dark); font-weight: 600; font-size: .95rem; transition: border-color .2s; }
.compare-link:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.compare-table th, .compare-table td { padding: 12px 16px; border: 1px solid #ddd; text-align: left; }
.compare-table thead th { background: var(--dark); color: white; }
.compare-table tbody tr:nth-child(even) { background: var(--light); }

/* App hero */
.app-hero { background: linear-gradient(135deg, var(--dark) 0%, #2d1b4e 100%); color: white; padding: 48px 0; }
.app-hero-inner { display: flex; gap: 32px; align-items: flex-start; }
.app-hero-icon img { width: 96px; height: 96px; border-radius: 20px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.app-hero-info h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.app-tagline { color: rgba(255,255,255,.8); margin-bottom: 12px; }
.app-hero-info .badges { margin-bottom: 10px; }
.app-hero-info .rating { color: rgba(255,255,255,.9); margin-bottom: 20px; }
.app-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media(max-width: 600px) { .app-hero-inner { flex-direction: column; } }

/* Two-col layout */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media(max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.col-main h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.col-main h2:first-child { margin-top: 0; }

/* Feature list */
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.feature-list li { padding: 8px 12px; background: var(--light); border-radius: 8px; font-size: .9rem; border-left: 3px solid var(--orange); }
@media(max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* Info box */
.info-box { background: var(--light); border-radius: var(--radius); padding: 24px; border: 1px solid #eee; }
.info-box h3 { margin-bottom: 16px; font-size: 1rem; }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .9rem; }
.info-table th, .info-table td { padding: 8px 10px; border-bottom: 1px solid #ddd; text-align: left; }
.info-table th { color: var(--mid); font-weight: 600; width: 40%; }
.info-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.info-actions .btn { justify-content: center; }

/* FAQ */
.faq { margin-top: 8px; }
.faq dt { font-weight: 700; font-size: .95rem; margin-top: 20px; margin-bottom: 6px; color: var(--dark); }
.faq dd { color: var(--mid); font-size: .9rem; line-height: 1.6; margin-left: 0; }

/* Guides */
.guide-list { display: flex; flex-direction: column; gap: 24px; }
.guide-card { background: var(--light); border-radius: var(--radius); padding: 24px; border: 1px solid #eee; }
.guide-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.guide-card p { color: var(--mid); margin-bottom: 12px; font-size: .9rem; }

/* Prose */
.prose h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.prose p { color: var(--mid); margin-bottom: 16px; }
.prose a { color: var(--orange); }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; padding: 16px; background: white; border-radius: var(--radius); border: 1px solid #eee; }
.filter-bar label { font-size: .9rem; color: var(--mid); display: flex; gap: 6px; align-items: center; }
.filter-bar select { border: 1px solid #ddd; border-radius: 6px; padding: 4px 8px; font-size: .9rem; }

/* Disclaimer */
.disclaimer-small { font-size: .78rem; color: #999; margin-top: 12px; font-style: italic; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 48px 0 24px; margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media(max-width: 768px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer strong { color: white; display: block; margin-bottom: 10px; }
.site-footer p { font-size: .85rem; line-height: 1.6; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.6); font-size: .85rem; }
.site-footer a:hover { color: var(--orange); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .78rem; color: rgba(255,255,255,.4); text-align: center; }
