/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header */
.site-header {
    background: #1F2937;
    color: #F9FAFB;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #F9FAFB;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    white-space: nowrap;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #D1D5DB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a:focus {
    color: #F59E0B;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 100%);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 4px solid #F59E0B;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0.75rem auto 1.5rem;
    color: #374151;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #D97706;
}

.stat-label {
    font-size: 0.9rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter */
.filter-section {
    padding: 1.5rem 0 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #D1D5DB;
    background: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.filter-btn:hover {
    border-color: #F59E0B;
    color: #D97706;
}

.filter-btn.active {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #1F2937;
}

/* Moments Grid */
.moments-grid-section {
    padding: 1.5rem 0 2rem;
}

.section-title {
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50%;
    height: 3px;
    background: #F59E0B;
    border-radius: 2px;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.moment-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #E5E7EB;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.moment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: #FEF3C7;
    color: #92400E;
}

.card-category.movie { background: #DBEAFE; color: #1E3A8A; }
.card-category.tv { background: #D1FAE5; color: #064E3B; }
.card-category.real-life { background: #FEE2E2; color: #991B1B; }
.card-category.celebrity { background: #EDE9FE; color: #5B21B6; }

.card-year {
    font-size: 0.85rem;
    color: #6B7280;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.card-source {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.card-description {
    font-size: 0.95rem;
    color: #374151;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F3F4F6;
    padding-top: 0.75rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #D1D5DB;
    transition: color 0.15s;
    padding: 0;
    line-height: 1;
}

.star-btn.filled {
    color: #F59E0B;
}

.star-btn:hover {
    color: #D97706;
}

.rating-count {
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B7280;
    font-size: 1.1rem;
}

/* Submit Form */
.submit-section {
    background: #F3F4F6;
    padding: 2.5rem 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.submit-intro {
    margin-bottom: 1.5rem;
    color: #4B5563;
}

.submit-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.btn-primary {
    background: #F59E0B;
    color: #1F2937;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #D97706;
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* Supporting Content */
.supporting-content {
    padding: 3rem 0;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.content-block {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.content-block h3 {
    margin-bottom: 0.5rem;
    color: #D97706;
}

.tips-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.tips-box h3 {
    margin-bottom: 0.75rem;
}

.tips-box ul {
    list-style: none;
}

.tips-box li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tips-box li::before {
    content: "🚗";
    position: absolute;
    left: 0;
    top: 0;
}

.faq-block {
    max-width: 700px;
}

.faq-item {
    margin-bottom: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+ ";
    font-weight: 700;
    color: #F59E0B;
}

.faq-item[open] summary::before {
    content: "− ";
}

.faq-item p {
    padding: 0.75rem 1rem;
    margin: 0;
    color: #4B5563;
}

/* Footer */
.site-footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

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

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: #F59E0B;
}

.footer-note {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .moments-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 1rem;
    }
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-btn {
        text-align: center;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
