/* Philippine Flag Colors */
:root {
  --ph-red: #ce1126;
  --ph-blue: #0038a8;
  --ph-gold: #fcd116;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f7;
  --gray-medium: #86868b;
  --gray-dark: #1d1d1f;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--white);
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.logo .small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-medium);
}

.logo .large {
  font-size: 1.5rem;
  color: var(--black);
}

.logo .highlight {
  color: var(--ph-red);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  color: var(--black);
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  height: calc(100vh - 60px);
  background-color: var(--gray-light);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 999;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 0.5rem;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  color: var(--gray-dark);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar nav ul li a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.sidebar nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--ph-red);
}

.sidebar nav ul li a.active {
  color: var(--ph-red);
  background-color: rgba(206, 17, 38, 0.1);
}

/* Subitem Navigation */
.sidebar nav ul li.subitem a {
  padding-left: 3.5rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.sidebar nav ul li.subitem a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--ph-red);
}

.sidebar nav ul li.subitem a.active {
  color: var(--ph-red);
  background-color: rgba(206, 17, 38, 0.08);
}

/* Category Headers in Sidebar */
.sidebar .category-header {
  padding: 1.5rem 2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-medium);
}

/* Main Content */
.main-content {
  margin-left: 250px;
  margin-top: 60px;
  padding: 3rem;
  min-height: calc(100vh - 60px);
}

/* Featured Article Section */
.featured-article {
  margin-bottom: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--ph-blue) 0%, var(--ph-red) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

.featured-article .content {
  position: relative;
  z-index: 1;
}

.featured-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--ph-gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.featured-article h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.featured-article p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.featured-article .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--white);
  color: var(--ph-blue);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.featured-article .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.category-card {
  background-color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  transition: var(--transition);
  z-index: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--ph-red);
  transform: scaleY(0);
  transition: var(--transition);
  z-index: 2;
}

.category-card:nth-child(2)::after {
  background-color: var(--ph-blue);
}

.category-card:nth-child(3)::after {
  background-color: var(--ph-gold);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-card:hover::after {
  transform: scaleY(1);
}

.category-card:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Chef Profile Cards with Sqircle Images */
.chef-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--gray-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chef-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.15;
  z-index: 0;
}

/* Gradient backgrounds based on chef photos */
.chef-card[data-chef="josh-boutwood"]::before {
  background: linear-gradient(135deg, #e8d5c4 0%, #c9a882 100%);
}

.chef-card[data-chef="miko-calo"]::before {
  background: linear-gradient(135deg, #d4e4e8 0%, #b8c5cc 100%);
}

.chef-card[data-chef="margarita-fores"]::before {
  background: linear-gradient(135deg, #e8d8c8 0%, #d4b5a0 100%);
}

.chef-card[data-chef="bruce-ricketts"]::before {
  background: linear-gradient(135deg, #d8dfe5 0%, #b8c2cc 100%);
}

.chef-card[data-chef="jordy-navarra"]::before {
  background: linear-gradient(135deg, #dde5d8 0%, #c5d4bc 100%);
}

.chef-card[data-chef="chele-gonzalez"]::before {
  background: linear-gradient(135deg, #e8e4d8 0%, #d4cbb8 100%);
}

.chef-card[data-chef="aaron-isip"]::before {
  background: linear-gradient(135deg, #d8dce0 0%, #c2c8cc 100%);
}

.chef-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--ph-red);
  transform: scaleY(0);
  transition: var(--transition);
  z-index: 1;
}

.chef-card:nth-child(2)::after {
  background-color: var(--ph-blue);
}

.chef-card:nth-child(3)::after {
  background-color: var(--ph-gold);
}

.chef-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.chef-card:hover::after {
  transform: scaleY(1);
}

.chef-profile-image {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.chef-card:hover .chef-profile-image {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.chef-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  color: var(--gray-dark);
}

.chef-card p {
  color: var(--gray-medium);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Article Page */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  padding-top: 1rem;
}

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--ph-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.article-intro {
  font-size: 1.25rem;
  color: var(--gray-medium);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Related Categories Pill Buttons */
.related-categories {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 3rem;
  max-width: 800px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pill-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.pill-button:hover {
  background-color: var(--ph-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Inline Location Buttons */
.inline-buttons {
  display: inline-flex;
  gap: 0.375rem;
  margin-left: 0.5rem;
  white-space: nowrap;
  vertical-align: middle;
}

.inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--gray-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: var(--gray-dark);
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.inline-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.inline-btn:hover {
  background-color: var(--ph-red);
  border-color: var(--ph-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

/* Embedded Map */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ranked List */
.ranked-list {
  list-style: none;
  counter-reset: rank;
}

.ranked-item {
  counter-increment: rank;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--gray-light);
  border-radius: 12px;
  position: relative;
}

.ranked-item::before {
  content: counter(rank);
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ph-red) 0%, var(--ph-blue) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lexend", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.ranked-item-content {
  margin-left: 64px;
}

.ranked-item h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.ranked-item .location {
  color: var(--gray-medium);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ranked-item p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ranked-item .review-summary {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--ph-gold);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.ranked-item .links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ranked-item .links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.ranked-item .links a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.ranked-item .links a:hover {
  color: var(--ph-blue);
  transform: translateX(2px);
}

/* Footer */
footer {
  margin-left: 250px;
  padding: 2rem 3rem;
  background-color: var(--gray-dark);
  color: var(--white);
  text-align: center;
  position: relative;
}

.footer-logo {
  width: 48px;
  height: auto;
  opacity: 0.15;
  margin: 0 auto 1.5rem;
  display: block;
}

footer p {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

footer p:not(:last-child) {
  margin-bottom: 1rem;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--ph-red);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 0 1rem;
    height: 56px;
  }

  .logo {
    flex-wrap: wrap;
  }

  .logo .small {
    font-size: 0.7rem;
  }

  .logo .large {
    font-size: 1.1rem;
  }

  .mobile-menu-toggle {
    display: block;
    font-size: 1.75rem;
    padding: 0.5rem;
  }

  .sidebar {
    transform: translateX(-100%);
    top: 56px;
    height: calc(100vh - 56px);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    margin-top: 56px;
    padding: 1.5rem 1rem;
  }

  footer {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  footer a {
    color: var(--white);
  }

  .featured-article {
    padding: 2rem 1.5rem;
  }

  .featured-article h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .article-header {
    padding-top: 0.5rem;
    margin-bottom: 2rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
  }

  .article-intro {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .inline-buttons {
    margin-left: 0.25rem;
    gap: 0.25rem;
  }

  .inline-btn {
    width: 26px;
    height: 26px;
  }

  .inline-btn svg {
    width: 13px;
    height: 13px;
  }

  .related-categories {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .pill-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-card {
    min-height: 160px;
    padding: 1.25rem;
  }

  .category-card h3 {
    font-size: 1.1rem;
    line-height: 1.25;
    word-wrap: break-word;
    hyphens: auto;
  }

  .category-card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .chef-card {
    min-height: 240px;
    padding: 1.5rem;
  }

  .chef-profile-image {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    margin-bottom: 1rem;
  }

  .chef-card h3 {
    font-size: 1.2rem;
  }

  .chef-card p {
    font-size: 0.75rem;
  }

  .ranked-item {
    padding: 1.5rem 1rem;
  }

  .ranked-item::before {
    position: relative;
    left: 0;
    top: 0;
    float: left;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .ranked-item-content {
    margin-left: 0;
  }

  .ranked-item h3 {
    display: inline;
    font-size: 1.25rem;
  }

  .ranked-item .location {
    clear: left;
    margin-top: 0.75rem;
  }

  .map-container {
    height: 300px;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .article-content li {
    margin-bottom: 0.5rem;
  }
}

/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .overlay {
    top: 56px;
  }
}
