/* ================================================
   The Pulse — Share Page Styles
   Brand-aligned, mobile-first, design-parity
   with the Flutter app's event detail screen
   ================================================ */

:root {
    /* Brand colors (from AppColors) */
    --charcoal: #1C1C1E;
    --charcoal-light: #2C2C2E;
    --charcoal-lighter: #3A3A3C;
    --sky-blue: #87CEEB;
    --teal: #4DB6AC;
    --teal-dark: #00897B;
    --gold: #F5C842;
    --orange: #FF8C00;
    --coral: #FF6B6B;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;
    --surface: #2C2C2E;
    --surface-elevated: #3A3A3C;
    --border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--charcoal);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.share-page {
    max-width: 380px;
    margin: 0 auto;
    background-color: #0A0A0A;
}

/* ── Header ── */
.share-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: none;
    height: 24px;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ── Hero Image (4:3) ── */
.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--charcoal-light);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Event Content ── */
.event-content {
    padding: 12px 16px;
    color: #FFFFFF;
}

.event-content .detail-text,
.event-content .venue-address,
.event-content .description-text {
    color: #FFFFFF;
}

.event-content .venue-name {
    color: var(--teal);
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Detail Rows ── */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-icon {
    font-size: 18px;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 1px;
}

.detail-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.venue-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--teal);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.venue-address {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Save Star ── */
.save-star {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Tags ── */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag-chip {
    background-color: rgba(46, 206, 172, 0.1);
    color: #2ECEAC;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
}

/* ── Description ── */
.description-section {
    margin-bottom: 10px;
}

.section-header {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.description-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.description-toggle {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0 0;
    opacity: 0.8;
}

.description-toggle:hover {
    opacity: 1;
}

/* ── Ticket Link (inline with price) ── */
.ticket-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--gold);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    background-color: rgba(245, 200, 66, 0.08);
    border: 1px solid rgba(245, 200, 66, 0.2);
    transition: all 0.2s ease;
    margin-left: 8px;
    white-space: nowrap;
}

.ticket-link-inline .material-icons {
    font-size: 12px;
}

.ticket-link-inline:hover {
    background-color: rgba(245, 200, 66, 0.15);
}

/* ── CTA Section ── */
.cta-section {
    padding: 10px 16px 20px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(77, 182, 172, 0.06));
    border-top: 1px solid var(--border);
}

.cta-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.cta-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coming-soon-label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--charcoal-lighter);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.store-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.store-btn-icon {
    width: 24px;
    height: 24px;
}

.store-btn-text {
    text-align: left;
}

.store-btn-text small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.store-btn-text span {
    font-weight: 600;
    font-size: 14px;
}

/* ── Past Event Banner ── */
.past-event-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: rgba(255, 107, 107, 0.1);
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    color: var(--coral);
    font-size: 14px;
    font-weight: 600;
}

.past-event-banner .material-icons {
    font-size: 18px;
}

/* ── Past Event / Not Found ── */
.past-event-notice {
    padding: 40px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.past-event-icon {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.past-event-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.past-event-detail {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.past-event-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.past-event-venue {
    font-size: 13px;
    color: var(--teal);
    font-weight: 500;
}

.past-event-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Footer ── */
.share-footer {
    padding: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ── Card Edge ── */
.share-page {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4), 4px 0 12px rgba(0, 0, 0, 0.4);
}