/*
Theme Name: Mickey on Main Street
Theme URI: https://mickeyonmainstreet.com
Author: Mickey on Main Street
Author URI: https://mickeyonmainstreet.com
Description: A magical Disney lifestyle blog theme — sky blue, black & white with pink and purple accents. Inspired by Main Street, USA.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
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: mickey-on-main-street
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: hsl(220 25% 10%);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: hsl(200 95% 45%); text-decoration: none; transition: color .2s ease; }
a:hover { color: hsl(330 85% 55%); }

h1, h2, h3, h4, .font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

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

/* ====== HEADER / NAV ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(210 25% 90%);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-branding img { height: 44px; width: auto; }
.site-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin: 0; color: hsl(220 25% 10%); font-weight: 600; }
.site-title a { color: inherit; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.main-nav a { color: hsl(220 25% 10%); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: hsl(200 95% 45%); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: hsl(220 25% 10%); margin: 5px 0; transition: .3s; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid hsl(210 25% 90%); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1.5rem; gap: 1rem; }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(1.02); }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, hsl(220 30% 15% / .45) 0%, hsl(220 30% 15% / .18) 45%, transparent 75%); }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, #fff 100%); }
.hero-inner { position: relative; z-index: 2; padding: 6rem 1.5rem; max-width: 900px; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px hsl(220 40% 10% / .6), 0 1px 4px hsl(220 40% 10% / .45);
}
.hero h1 .accent {
  font-style: italic;
  background: linear-gradient(135deg, hsl(200 100% 65%) 0%, hsl(280 90% 70%) 50%, hsl(330 95% 70%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 hsl(0 0% 100% / .95)) drop-shadow(0 2px 4px hsl(200 90% 90% / .9)) drop-shadow(0 0 10px hsl(195 100% 88% / .7));
}
.hero p { font-size: 1.05rem; max-width: 640px; margin: 0 auto 2rem; color: rgba(255,255,255,.95); text-shadow: 0 1px 12px hsl(220 40% 10% / .6); }

/* ====== POSTS GRID ====== */
.section { padding: 5rem 0; }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.post-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px hsl(220 30% 20% / .18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 25px 70px -20px hsl(200 95% 55% / .25); }
.post-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .content { padding: 1.5rem; }
.post-card .meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(330 85% 55%); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.post-card h3 a { color: hsl(220 25% 10%); }
.post-card .excerpt { color: hsl(220 10% 40%); font-size: .95rem; }

/* ====== SINGLE POST ====== */
.single-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
  background: hsl(220 25% 10%);
  color: #fff;
  overflow: hidden;
}
.single-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.single-hero .container { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 3rem; }
.single-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.single-hero .meta { color: rgba(255,255,255,.85); font-size: .9rem; }

.entry-content { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; font-size: 1.075rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.5em; }
.entry-content h2 { font-size: 2rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.75rem; }
.entry-content blockquote {
  border-left: 4px solid hsl(330 85% 65%);
  margin: 2em 0; padding: .5em 1.5em;
  font-style: italic; color: hsl(220 10% 30%);
  background: hsl(335 80% 97%);
  border-radius: .5rem;
}

/* ====== BUTTON ====== */
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, hsl(200 95% 55%), hsl(195 100% 70%));
  color: #fff !important;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: scale(1.04); box-shadow: 0 10px 30px -8px hsl(200 95% 55% / .5); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
}

/* ====== FOOTER ====== */
.site-footer {
  background: hsl(220 25% 10%);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
}
.site-footer a { color: hsl(330 90% 80%); }
.site-footer .credits { font-size: .85rem; opacity: .7; margin-top: 1rem; }

/* ====== PAGINATION ====== */
.pagination { margin: 3rem 0; text-align: center; }
.pagination .page-numbers {
  display: inline-block; padding: .5rem 1rem; margin: 0 .25rem;
  border-radius: .5rem; border: 1px solid hsl(210 25% 90%);
  color: hsl(220 25% 10%);
}
.pagination .page-numbers.current { background: hsl(200 95% 55%); color: #fff; border-color: transparent; }

/* ====== COMMENTS ====== */
.comments-area { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 1.5rem; background: hsl(210 30% 98%); border-radius: 1rem; margin-bottom: 1rem; }
