/* ════════════════════════════════════════════════════════════════
   public-shared.css — GrowOS Public Page Shared Foundation
   Shared design tokens, component styles, and responsive helpers
   used by nfc_card.html, review_page.html, and future public pages.
   ════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── Animations (shared) ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

/* ── Spinner ── */
.ps-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Section Label ── */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.5);
}

/* ── About Rich Text (shared between all public pages) ── */
.about-content { white-space: normal; }
.about-content h2 { font-size: 1.25rem; font-weight: 700; margin: 0.75em 0 0.25em; color: #1e293b; }
.about-content h3 { font-size: 1.1rem; font-weight: 600; margin: 0.6em 0 0.2em; color: #334155; }
.about-content p { margin: 0.4em 0; }
.about-content ul, .about-content ol { padding-left: 1.5em; margin: 0.4em 0; }
.about-content ul { list-style: disc; }
.about-content ol { list-style: decimal; }
.about-content li { margin: 0.15em 0; }

/* ── Content Tabs (About / FAQ / Gallery nav) ── */
.ct-nav-btn {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    color: #64748b;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.ct-nav-btn:hover { color: #2563eb; }
.ct-nav-btn.active { color: #2563eb; border-bottom-color: #2563eb; }
.ct-panel { display: none; }
.ct-panel.active { display: block; }

/* ── FAQ Accordion ── */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    color: #1e293b;
    transition: background 0.15s;
}
.faq-question:hover { background: #f1f5f9; }
.faq-question .faq-chevron { transition: transform 0.2s; font-size: 20px; color: #94a3b8; }
.faq-item.open .faq-question .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ── Gallery Collage ── */
.gallery-collage { display: grid; gap: 0.5rem; }
.gallery-collage.cols-1 { grid-template-columns: 1fr; }
.gallery-collage.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery-collage.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery-collage img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-collage img:hover { transform: scale(1.02); }
.gallery-collage .span-2 { grid-column: span 2; }
.gallery-collage .tall { grid-row: span 2; }

/* ── Responsive Helpers ── */
@media (max-width: 767px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 768px) {
    .mobile-only { display: none !important; }
}

/* ── Flatpickr Overrides (loaded only when flatpickr is present) ── */
.flatpickr-calendar {
    font-family: 'Inter', sans-serif !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border: 1px solid #e5e8ed !important;
    padding: 8px !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}
.flatpickr-day.today:not(.selected) {
    border-color: #2563eb !important;
    color: #2563eb !important;
    font-weight: 600;
}
.flatpickr-day:hover:not(.selected) { background: #f1f3f6 !important; }
.flatpickr-months { padding: 4px 0 8px; }
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
}
.flatpickr-weekday {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: #64748b !important; }
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg { fill: #2563eb !important; }
.flatpickr-alt-input {
    width: 100%; height: 2.5rem;
    padding-left: 2.25rem; padding-right: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e8ed;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none; cursor: pointer;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.15s, border-color 0.15s;
    color: #1e293b;
}
.flatpickr-alt-input:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    border-color: #2563eb;
}
.flatpickr-input[readonly] { display: block; }
