/*
Theme Name: BookDayPass Theme
Theme URI: https://bookdaypass.com
Author: Antigravity
Author URI: https://bookdaypass.com
Description: Custom theme for BookDayPass marketplace. Airbnb-style design.
Version: 2.0.0
Text Domain: bdp-theme
*/

/* ==========================================================================
   1. Design Tokens & Variables
   ========================================================================== */
:root {
    /* Colors */
    --bdp-color-primary: #ff385c;
    --bdp-color-primary-dark: #e11d48;
    --bdp-color-accent: #ff9f1c;
    --bdp-color-bg: #ffffff;
    --bdp-color-surface: #ffffff;
    --bdp-color-text: #111827;
    --bdp-color-muted: #6b7280;
    --bdp-color-border: #e5e7eb;
    --bdp-color-light: #f7f7f7;

    /* Typography */
    --bdp-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Spacing & Layout */
    --bdp-container-width: 1120px;
    --bdp-header-height: 80px;

    /* Radius */
    --bdp-radius-sm: 8px;
    --bdp-radius-md: 12px;
    --bdp-radius-card: 18px;
    --bdp-radius-pill: 999px;

    /* Shadows */
    --bdp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bdp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --bdp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --bdp-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
    --bdp-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--bdp-font-family);
    color: var(--bdp-color-text);
    background-color: var(--bdp-color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-top: 0;
    color: var(--bdp-color-text);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.bdp-container {
    max-width: var(--bdp-container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.bdp-section {
    padding: 80px 0;
}

.bdp-section--light {
    background-color: var(--bdp-color-light);
}

.bdp-flex {
    display: flex;
}

.bdp-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bdp-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bdp-grid {
    display: grid;
    gap: 24px;
}

.bdp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bdp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bdp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .bdp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .bdp-grid-3,
    .bdp-grid-2 {
        grid-template-columns: 1fr;
    }

    .bdp-section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* Buttons */
.bdp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--bdp-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 16px;
}

.bdp-button-primary {
    background-color: var(--bdp-color-primary);
    color: white;
}

.bdp-button-primary:hover {
    background-color: var(--bdp-color-primary-dark);
    transform: translateY(-1px);
}

.bdp-button-ghost {
    background-color: transparent;
    color: var(--bdp-color-text);
}

.bdp-button-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bdp-button-outline {
    background-color: transparent;
    border: 1px solid var(--bdp-color-text);
    color: var(--bdp-color-text);
}

.bdp-button-outline:hover {
    background-color: var(--bdp-color-light);
}

/* Badges */
.bdp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--bdp-radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdp-badge--primary {
    background-color: var(--bdp-color-primary);
    color: white;
}

/* Cards */
.bdp-card {
    background: white;
    border-radius: var(--bdp-radius-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--bdp-color-border);
}

.bdp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bdp-shadow-hover);
}

.bdp-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background-color: var(--bdp-color-light);
    overflow: hidden;
}

.bdp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bdp-card__content {
    padding: 20px;
}

.bdp-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bdp-card__subtitle {
    font-size: 14px;
    color: var(--bdp-color-muted);
    margin-bottom: 8px;
}

.bdp-card__price {
    font-weight: 600;
    color: var(--bdp-color-text);
}

/* Hero */
.bdp-hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.bdp-hero--primary {
    background: linear-gradient(135deg, var(--bdp-color-primary) 0%, #BD1E59 100%);
}

.bdp-hero__title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.bdp-hero__subtitle {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .bdp-hero {
        padding: 80px 0 60px;
    }

    .bdp-hero__title {
        font-size: 36px;
    }

    .bdp-hero__subtitle {
        font-size: 18px;
    }
}

/* Search Bar */
.bdp-search {
    background: white;
    padding: 8px;
    border-radius: var(--bdp-radius-pill);
    display: inline-flex;
    align-items: center;
    box-shadow: var(--bdp-shadow-soft);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bdp-search__group {
    flex: 1;
    padding: 0 24px;
    text-align: left;
    position: relative;
}

.bdp-search__group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 1px;
    background-color: var(--bdp-color-border);
}

.bdp-search__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bdp-color-text);
    margin-bottom: 2px;
}

.bdp-search__input {
    width: 100%;
    border: none;
    font-size: 16px;
    color: var(--bdp-color-muted);
    background: transparent;
    padding: 0;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.bdp-search__button {
    background-color: var(--bdp-color-primary);
    color: white;
    border: none;
    border-radius: var(--bdp-radius-pill);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdp-search__button:hover {
    background-color: var(--bdp-color-primary-dark);
}

@media (max-width: 768px) {
    .bdp-search {
        flex-direction: column;
        border-radius: var(--bdp-radius-card);
        padding: 16px;
        gap: 16px;
    }

    .bdp-search__group {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--bdp-color-border);
        padding-bottom: 12px;
    }

    .bdp-search__group:not(:last-child)::after {
        display: none;
    }

    .bdp-search__button {
        width: 100%;
        justify-content: center;
    }
}

/* Header */
.bdp-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bdp-color-bg);
    transition: box-shadow 0.3s ease;
}

.bdp-header.is-scrolled {
    box-shadow: var(--bdp-shadow-sm);
}

.bdp-header__logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--bdp-color-primary);
    letter-spacing: -0.5px;
}

.bdp-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.bdp-nav__link {
    font-weight: 500;
    color: var(--bdp-color-text);
}

.bdp-nav__link:hover {
    color: var(--bdp-color-primary);
}

.bdp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--bdp-color-text);
}

@media (max-width: 768px) {
    .bdp-nav {
        display: none;
        /* Hidden by default on mobile, toggled via JS */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--bdp-shadow-lg);
        gap: 16px;
    }

    .bdp-nav.is-open {
        display: flex;
    }

    .bdp-mobile-toggle {
        display: block;
    }
}

/* Footer */
.bdp-footer {
    background-color: var(--bdp-color-light);
    padding: 80px 0 40px;
    margin-top: auto;
}

.bdp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.bdp-footer__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--bdp-color-text);
}

.bdp-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bdp-footer__list li {
    margin-bottom: 12px;
}

.bdp-footer__list a {
    color: var(--bdp-color-muted);
}

.bdp-footer__list a:hover {
    color: var(--bdp-color-primary);
    text-decoration: underline;
}

.bdp-footer__bottom {
    border-top: 1px solid var(--bdp-color-border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: var(--bdp-color-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .bdp-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bdp-footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}