/* ============================================
   FOODTRAGO - MAIN STYLESHEET
   ============================================ */

:root {
  --primary: #2B3FD9;
  --primary-dark: #1a2bb5;
  --primary-light: #eef0fd;
  --accent: #FF6B35;
  --accent-light: #fff3ef;
  --dark: #0f0f1a;
  --dark-2: #1c1c2e;
  --gray: #6b7280;
  --gray-light: #f4f5f7;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }

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

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--primary);
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray);
  transition: var(--transition); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary); transform: scaleX(0);
  transition: transform 0.3s ease; transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.mobile-menu {
  display: none; flex-direction: column; padding: 16px 24px 20px;
  border-top: 1px solid var(--border); gap: 4px;
}
.mobile-menu a {
  padding: 10px 0; font-size: 1rem; font-weight: 500;
  color: var(--gray); border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f0f1a 0%, #1c1c3a 40%, #2B3FD9 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,107,53,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(43,63,217,0.3) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(255,107,53,0.1) 0%, transparent 40%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 40px 24px; max-width: 800px;
  animation: heroIn 1.2s ease forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label {
  display: inline-block; color: var(--accent);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; color: var(--white); line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 36px;
}
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: 0.8rem; letter-spacing: 2px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block; padding: 14px 32px;
  background: var(--accent); color: var(--white);
  font-weight: 600; font-size: 0.95rem; border-radius: 50px;
  transition: var(--transition); letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}
.btn-primary:hover {
  background: #e55a28; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,53,0.5);
}
.btn-outline {
  display: inline-block; padding: 12px 32px;
  border: 2px solid var(--primary); color: var(--primary);
  font-weight: 600; font-size: 0.95rem; border-radius: 50px;
  transition: var(--transition); background: transparent;
}
.btn-outline:hover {
  background: var(--primary); color: var(--white); transform: translateY(-2px);
}

/* ========== CATEGORY BAR ========== */
.category-bar {
  background: var(--white); padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 70px; z-index: 99;
  box-shadow: var(--shadow-sm);
}
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  white-space: nowrap; padding: 9px 20px;
  border: 2px solid var(--border); border-radius: 50px;
  background: transparent; color: var(--gray);
  font-size: 0.88rem; font-weight: 500;
  transition: var(--transition);
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: var(--primary); border-color: var(--primary);
  color: var(--white); box-shadow: 0 4px 14px rgba(43,63,217,0.3);
}

/* ========== SECTION LABELS ========== */
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}
.posts-count { font-size: 0.85rem; color: var(--text-light); }

/* ========== FEATURED POST ========== */
.featured-section { padding: 60px 0 0; }
.featured-post {
  border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr;
  box-shadow: var(--shadow-lg); background: var(--white);
  border: 1px solid var(--border); min-height: 420px;
}
.featured-post .fp-image {
  position: relative; overflow: hidden;
}
.featured-post .fp-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-post:hover .fp-image img { transform: scale(1.04); }
.featured-post .fp-image .fp-cat {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent); color: var(--white);
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.featured-post .fp-body {
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
}
.fp-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 14px; }
.fp-meta span { margin: 0 6px; }
.featured-post .fp-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800; line-height: 1.25; margin-bottom: 16px;
  color: var(--text);
}
.featured-post .fp-excerpt {
  color: var(--text-light); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 28px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fp-read-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.fp-read-link:hover { gap: 12px; }

/* ========== POSTS GRID ========== */
.posts-section { padding: 60px 0 80px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  cursor: pointer;
}
.post-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.post-card .pc-image {
  position: relative; height: 220px; overflow: hidden;
}
.post-card .pc-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .pc-image img { transform: scale(1.06); }
.pc-cat-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}
.cat-food { background: #fef3c7; color: #92400e; }
.cat-travel { background: #dbeafe; color: #1e40af; }
.cat-restaurant { background: #fce7f3; color: #9d174d; }
.cat-hotel { background: #d1fae5; color: #065f46; }
.cat-general { background: var(--primary-light); color: var(--primary); }

.pc-body { padding: 24px; }
.pc-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px;
}
.pc-meta .dot { width: 3px; height: 3px; background: var(--border); border-radius: 50%; }
.pc-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 10px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-excerpt {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 18px;
}
.pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.pc-read {
  font-size: 0.83rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 5px; transition: var(--transition);
}
.pc-read:hover { gap: 8px; }
.pc-read-time { font-size: 0.78rem; color: var(--text-light); }

/* ========== LOADING ========== */
.loading-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 0;
  color: var(--text-light);
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.load-more-wrap { text-align: center; margin-top: 48px; }

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 24px;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.nl-text h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--white); margin-bottom: 8px;
}
.nl-text p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.nl-form { display: flex; gap: 12px; flex: 1; max-width: 480px; }
.nl-form input {
  flex: 1; padding: 14px 20px; border-radius: 50px;
  border: none; font-size: 0.95rem; font-family: var(--font-body);
  outline: none;
}
.nl-form button {
  padding: 14px 28px; background: var(--accent); color: var(--white);
  border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; transition: var(--transition);
  box-shadow: 0 4px 14px rgba(255,107,53,0.4);
}
.nl-form button:hover { background: #e55a28; transform: translateY(-2px); }

/* ========== FOOTER ========== */
.footer { background: var(--dark); padding: 60px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { width: 40px; }
.footer-brand span {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 700; color: var(--white);
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding: 20px 24px; text-align: center;
  color: rgba(255,255,255,0.3); font-size: 0.82rem;
}

/* ========== POST DETAIL PAGE ========== */
.post-detail { padding-top: 70px; }
.post-hero {
  position: relative; height: clamp(300px, 55vh, 550px);
  overflow: hidden;
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.post-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px; max-width: 900px; margin: 0 auto;
}
.post-hero-cat {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  background: var(--accent); color: white;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 14px;
}
.post-hero-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; color: white; line-height: 1.2;
}
.post-content-wrap {
  max-width: 820px; margin: 0 auto; padding: 56px 24px 80px;
}
.post-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 2px solid var(--border); margin-bottom: 40px;
  color: var(--text-light); font-size: 0.87rem;
}
.post-meta-bar strong { color: var(--text); }
.post-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.post-body h2 {
  font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 800; margin: 40px 0 16px; color: var(--text);
}
.post-body h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; margin: 32px 0 12px;
}
.post-body p { margin-bottom: 20px; }
.post-body img {
  width: 100%; border-radius: var(--radius); margin: 28px 0;
  box-shadow: var(--shadow-md);
}
.post-body blockquote {
  border-left: 4px solid var(--accent); padding: 16px 24px;
  background: var(--accent-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0; font-style: italic; color: var(--text);
}
.post-body video {
  width: 100%; border-radius: var(--radius); margin: 28px 0;
}
.post-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin: 28px 0;
}
.post-gallery img {
  height: 180px; object-fit: cover; border-radius: 12px; margin: 0;
  cursor: pointer; transition: transform 0.3s ease;
}
.post-gallery img:hover { transform: scale(1.03); }
.post-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-tag {
  padding: 6px 14px; background: var(--gray-light); border-radius: 50px;
  font-size: 0.82rem; color: var(--gray); font-weight: 500;
}
.share-section {
  margin-top: 32px; padding: 24px;
  background: var(--gray-light); border-radius: var(--radius);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.share-section span { font-weight: 600; font-size: 0.9rem; }
.share-btn {
  padding: 8px 18px; border-radius: 50px; font-size: 0.83rem;
  font-weight: 600; cursor: pointer; transition: var(--transition); border: none;
}
.share-fb { background: #1877f2; color: white; }
.share-tw { background: #1da1f2; color: white; }
.share-wa { background: #25d366; color: white; }
.share-copy { background: var(--primary); color: white; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ========== ABOUT / CONTACT / CATEGORY PAGES ========== */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 130px 24px 70px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--white); margin-bottom: 16px;
}
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.page-content { padding: 60px 0 80px; }
.page-content h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  margin-bottom: 16px;
}
.page-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

/* Contact Form */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 500; font-size: 0.9rem;
  color: var(--text); margin-bottom: 7px;
}
.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-body);
  transition: var(--transition); outline: none; background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ========== IMAGE LIGHTBOX ========== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: white; font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: var(--dark); color: white; padding: 14px 24px;
  border-radius: 50px; font-size: 0.9rem; font-weight: 500;
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; pointer-events: none;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #065f46; }
.toast.error { background: #7f1d1d; }

/* ========== EMPTY STATE ========== */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 80px 24px;
  color: var(--text-light);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-image { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .nl-form { flex-direction: column; width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .featured-post .fp-body { padding: 28px 24px; }
  .post-hero-content { padding: 24px; }
}
