/* Demo Page Styles
   Hallie's Hope Interactive Demo
*/

/* ===== DEMO HERO ===== */
.demo-hero {
    background: linear-gradient(145deg, var(--forest) 0%, var(--forest-light) 100%);
    color: var(--cream);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    text-align: center;
}

.demo-hero__tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.demo-hero__title {
    color: var(--cream);
    margin-bottom: var(--spacing-md);
}

.demo-hero__subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.demo-hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== DEMO SCREENS SECTION ===== */
.demo-screens {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
    background-color: #f0f0f0;
}

/* ===== DEMO NAVIGATION ===== */
.demo-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.demo-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.demo-nav__btn:hover {
    background: white;
    color: var(--forest);
    border-color: var(--sage-light);
}

.demo-nav__btn.active {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

.demo-nav__btn svg {
    opacity: 0.7;
}

.demo-nav__btn.active svg {
    opacity: 1;
}

/* ===== DEMO VIEWPORT ===== */
.demo-viewport {
    background: #e0e0e0;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.15);
    min-height: 600px;
}

.demo-screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOCKUP STYLES ===== */
.mockup {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mockup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
}

.mockup__header--dark {
    background: var(--forest);
    border-bottom-color: var(--forest-light);
}

.mockup__header--centered {
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(145deg, var(--forest) 0%, var(--forest-light) 100%);
}

.mockup__header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup__logo {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    color: var(--forest);
}

.mockup__logo--light {
    color: var(--cream);
}

.mockup__logo--large {
    font-size: 1.5rem;
    color: var(--cream);
}

.mockup__org,
.mockup__page {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    border-left: 1px solid var(--cream-dark);
}

.mockup__user {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mockup__user--light {
    color: rgba(255, 255, 255, 0.8);
}

.mockup__content {
    padding: 1.5rem;
}

.mockup__content--centered {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

.mockup__content--split {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    padding: 1.5rem;
}

.mockup__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.mockup__title--large {
    font-size: 1.75rem;
    color: var(--forest);
}

.mockup__subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mockup__tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
    padding-bottom: 0.5rem;
}

.mockup__tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mockup__tab:hover {
    background: var(--cream);
}

.mockup__tab--active {
    background: var(--forest);
    color: white;
}

/* ===== KPI CARDS ===== */
.mockup__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cream);
    border-radius: var(--radius-md);
}

.kpi-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.kpi-card__icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.kpi-card__icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.kpi-card__icon--purple {
    background: #f3e8ff;
    color: #9333ea;
}

.kpi-card__icon--orange {
    background: #ffedd5;
    color: #ea580c;
}

.kpi-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kpi-card__label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.kpi-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.kpi-card__change {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.kpi-card__change--up {
    color: #16a34a;
}

.kpi-card__change--warning {
    color: #ea580c;
}

/* ===== TABLES ===== */
.mockup__section {
    margin-top: 2rem;
}

.mockup__section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--forest);
}

.mockup__table {
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mockup__table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--cream-dark);
    align-items: center;
}

.mockup__table-row:last-child {
    border-bottom: none;
}

.mockup__table-row--header {
    background: var(--cream);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge--success {
    background: #dcfce7;
    color: #16a34a;
}

.badge--muted {
    background: #f3f4f6;
    color: #6b7280;
}

.badge--purple {
    background: #f3e8ff;
    color: #9333ea;
}

.badge--blue {
    background: #dbeafe;
    color: #2563eb;
}

.badge--small {
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
}

/* ===== POS SCREEN ===== */
.mockup--pos .mockup__content {
    background: #1a1a2e;
}

.pos-cart {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.pos-cart__title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--forest);
}

.pos-cart__items {
    flex: 1;
    margin-bottom: 1rem;
}

.pos-cart__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cream-dark);
}

.pos-cart__item:last-child {
    border-bottom: none;
}

.pos-cart__item-name {
    font-weight: 500;
    display: block;
}

.pos-cart__item-code {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pos-cart__item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.pos-cart__summary {
    border-top: 2px solid var(--cream-dark);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.pos-cart__summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.pos-cart__summary-row--gift-aid {
    color: #16a34a;
}

.pos-cart__summary-row--total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.pos-cart__pay-btn {
    width: 100%;
    padding: 1rem;
    background: var(--forest);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pos-cart__pay-btn:hover {
    background: var(--forest-light);
}

.pos-keypad {
    background: #2a2a4a;
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.pos-keypad__input {
    margin-bottom: 1rem;
}

.pos-keypad__input input {
    width: 100%;
    padding: 0.875rem;
    background: #1a1a2e;
    border: 1px solid #3a3a5a;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.pos-keypad__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pos-keypad__btn {
    padding: 1rem;
    background: #3a3a5a;
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pos-keypad__btn:hover {
    background: #4a4a6a;
}

.pos-keypad__btn--clear {
    background: #ef4444;
}

.pos-keypad__btn--enter {
    background: var(--forest);
}

.pos-keypad__quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.pos-keypad__quick-btn {
    padding: 0.75rem;
    background: #1a1a2e;
    border: 1px solid #3a3a5a;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pos-keypad__quick-btn:hover {
    background: #3a3a5a;
    color: white;
}

/* ===== PRICING STATION FORM ===== */
.pricing-form {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-form__row {
    margin-bottom: 1rem;
}

.pricing-form__row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pricing-form__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.pricing-form__field input,
.pricing-form__field select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    background: white;
}

.pricing-form__select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: white;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
}

.pricing-form__price-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    padding-left: 0.875rem;
}

.pricing-form__price-input input {
    border: none;
    padding-left: 0.25rem;
}

.pricing-form__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pricing-form__actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== DONOR KIOSK ===== */
.mockup--kiosk .mockup__content {
    padding: 3rem 2rem;
}

.kiosk-form {
    text-align: left;
    margin-top: 2rem;
}

.kiosk-form__row {
    margin-bottom: 1rem;
}

.kiosk-form__field label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.kiosk-form__field input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
}

.kiosk-form__checkbox {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #dcfce7;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.kiosk-form__checkbox input {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.kiosk-form__checkbox label {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.kiosk-form__checkbox-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.kiosk-form__signature {
    margin: 1.5rem 0;
}

.kiosk-form__signature label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.kiosk-form__signature-pad {
    background: white;
    border: 2px dashed var(--cream-dark);
    border-radius: var(--radius-md);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kiosk-form__signature-pad svg {
    width: 80%;
    max-width: 300px;
}

.kiosk-form__submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--forest);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

/* ===== REPORTS ===== */
.reports-export {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.reports-export__controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.reports-export__field {
    flex: 1;
}

.reports-export__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.reports-export__field select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    background: white;
}

.reports-export__summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.reports-export__stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-sm);
}

.reports-export__stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest);
}

.reports-export__stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== ADMIN ===== */
.admin-shops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-shop-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.admin-shop-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-shop-card__header h4 {
    font-size: 1rem;
    color: var(--forest);
}

.admin-shop-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.admin-shop-card__stat {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-sm);
}

.admin-shop-card__stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
}

.admin-shop-card__stat-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* ===== UTILITY ===== */
.link {
    color: var(--forest);
    text-decoration: underline;
}

.text-success {
    color: #16a34a;
}

/* ===== DRIVER.JS CUSTOM STYLES ===== */
.driver-popover {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 360px;
}

.driver-popover-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.125rem;
    color: var(--forest);
}

.driver-popover-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.driver-popover-progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.driver-popover-navigation-btns {
    gap: 0.5rem;
}

.driver-popover-prev-btn,
.driver-popover-next-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.driver-popover-prev-btn {
    background: var(--cream);
    color: var(--charcoal);
    border: 1px solid var(--cream-dark);
}

.driver-popover-prev-btn:hover {
    background: var(--cream-dark);
}

.driver-popover-next-btn {
    background: var(--forest);
    color: white;
    border: none;
}

.driver-popover-next-btn:hover {
    background: var(--forest-light);
}

.driver-popover-close-btn {
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .mockup__content--split {
        grid-template-columns: 1fr;
    }

    .reports-export__summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .mockup__kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .demo-nav {
        gap: 0.375rem;
    }

    .demo-nav__btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .demo-nav__btn svg {
        display: none;
    }

    .mockup__kpis {
        grid-template-columns: 1fr;
    }

    .mockup__table-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }

    .mockup__table-row--header span:nth-child(3),
    .mockup__table-row--header span:nth-child(4),
    .mockup__table-row span:nth-child(3),
    .mockup__table-row span:nth-child(4) {
        display: none;
    }

    .pricing-form__row--two {
        grid-template-columns: 1fr;
    }

    .reports-export__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-export__summary {
        grid-template-columns: 1fr 1fr;
    }
}
