/* Molly Pop Brand Styles - Consistent with mollypopgrapes.com */

:root {
  --molly-pink: #EF4E92;
  --molly-pink-dark: #E2068A;
  --molly-pink-light: #F49FD2;
  --molly-aqua: #6ECBDA;
  --molly-green: #5CBF62;
  --molly-text: #353030;
  --molly-light-pink: #FFF1F7;
  --molly-border: #eee;
  --max-width: 1200px;
  --font-family: "avenir-lt-pro", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: #fff;
  color: var(--molly-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--molly-pink);
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid var(--molly-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo img {
  height: 42px;
  width: auto;
}

header .logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--molly-text);
}

header ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

header ul a {
  font-weight: 600;
  color: var(--molly-text);
  padding: 6px 0;
  position: relative;
}

header ul a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--molly-pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

header ul a:hover::after,
header ul a.active::after {
  transform: scaleX(1);
}

header ul a.shop-link {
  background-color: var(--molly-pink);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
}

header ul a.shop-link::after {
  display: none;
}

header ul a.shop-link:hover {
  background-color: var(--molly-pink-dark);
  color: white;
}

/* Main Content - Full width for full-bleed sections */
main {
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(circle, var(--molly-pink-light) 0%, var(--molly-pink) 100%);
  color: white;
  border-radius: 24px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  color: var(--molly-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--molly-border);
  font-weight: 700;
}

/* Post and Event Lists */
.post-list,
.event-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.post-card,
.event-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--molly-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover,
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(239, 78, 146, 0.15);
}

.post-card img,
.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content,
.event-content {
  padding: 1.5rem;
}

.post-card h2,
.post-card h3,
.event-card h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.post-card a,
.event-card a {
  color: var(--molly-text);
}

.post-card a:hover,
.event-card a:hover {
  color: var(--molly-pink);
}

.meta,
.event-date,
.event-location {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.read-more,
.details-link,
.view-all {
  display: inline-block;
  margin-top: 1rem;
  color: var(--molly-pink);
  font-weight: 600;
  transition: color 0.2s;
}

.read-more:hover,
.details-link:hover,
.view-all:hover {
  color: var(--molly-pink-dark);
}

/* Buttons - Pill shape per Shopify theme */
.btn,
.register-btn {
  display: inline-block;
  background-color: var(--molly-pink);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover,
.register-btn:hover {
  background-color: var(--molly-pink-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background-color: var(--molly-aqua);
}

.btn-secondary:hover {
  background-color: #5bb8c7;
}

/* Blog Post / Event Page */
.blog-post,
.event-page {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post .hero-image,
.event-page .hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 2rem;
}

.blog-post header,
.event-page header {
  background: none;
  position: static;
  padding: 0;
  margin-bottom: 2rem;
  border: none;
}

.blog-post h1,
.event-page h1 {
  color: var(--molly-text);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.event-details {
  background: var(--molly-light-pink);
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1.5rem 0;
  border: 1px solid rgba(239, 78, 146, 0.2);
}

.event-details p {
  margin-bottom: 0.5rem;
}

.content {
  line-height: 1.8;
}

.content h2,
.content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--molly-text);
  font-weight: 700;
}

.content p {
  margin-bottom: 1rem;
}

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

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

.content a {
  color: var(--molly-pink);
  font-weight: 500;
}

.content a:hover {
  color: var(--molly-pink-dark);
  text-decoration: underline;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: var(--molly-light-pink);
  color: var(--molly-pink);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--molly-text);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  font-weight: 500;
}

footer a {
  color: var(--molly-pink);
}

footer a:hover {
  color: var(--molly-aqua);
}

.footer-links a:hover {
  color: var(--molly-aqua);
}

/* Featured Events */
.featured {
  border: 2px solid var(--molly-pink);
}

.featured::before {
  content: 'Featured';
  background: var(--molly-pink);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 4px;
}

.event-card {
  position: relative;
}

/* Past Events */
.past-events .event-card {
  opacity: 0.7;
}

.past-events h2 {
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
    padding: 12px 16px;
  }

  header .logo img {
    height: 36px;
  }

  header ul {
    gap: 16px;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  main {
    padding: 1.5rem 16px;
  }

  .blog-post h1,
  .event-page h1 {
    font-size: 1.75rem;
  }
}

/* Grid layouts for larger screens */
@media (min-width: 768px) {
  .post-list,
  .event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .post-list,
  .event-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
