/* ================================
   DAY ONE RUN - COMPLETE STYLES
   ================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-medium: #8A8A8A;
    --color-gray-dark: #141414;
    --color-accent-red: #D4756E;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-script: 'Dancing Script', cursive;
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --border-radius: 0px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
.script-font {
    font-family: var(--font-script);
    font-weight: 400;
}

.text-muted-gray {
    color: var(--color-gray-medium);
}

.text-accent-red {
    color: var(--color-accent-red);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BACKGROUNDS ===== */
.bg-card-dark {
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
}

/* ===== BUTTONS ===== */
.btn-primary {
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-cta {
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.btn-overlay {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-overlay:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
}

/* ===== HOVER EFFECTS ===== */
.hover-scale {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

/* ===== NAVIGATION ===== */
.nav-bar {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.8);
    transition: var(--transition-smooth);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-btn {
    display: block;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
}

.hero-bg {
    transition: transform 0.1s ease-out;
}

/* Legibility against a busy/moving photo: the section's gradient overlay
   only darkens the bottom half, but .hero-text sits vertically centered. */
.hero-text h1,
.hero-text > div {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-text,
.hero-signature,
.hero-widget {
    animation: fadeInUp 1s ease forwards;
}

.hero-text {
    animation-delay: 0.3s;
}

.hero-signature {
    animation-delay: 0.6s;
}

.hero-widget {
    animation-delay: 0.9s;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CITY CARDS ===== */
.city-card {
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.city-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(30, 30, 30, 0.9);
}

.route-map {
    pointer-events: none;
}

.discover-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.discover-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.discover-link:hover::after {
    width: calc(100% - 30px);
}

/* ===== CALENDAR CARDS ===== */
.calendar-card {
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.calendar-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* ===== PRODUCT ITEMS ===== */
.product-item {
    transition: var(--transition-smooth);
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-tag {
    animation: fadeIn 0.5s ease;
}

.product-overlay {
    animation: fadeInUp 0.8s ease;
}

.quick-add-btn {
    transition: all 0.3s ease;
}

/* ===== ACCENT OVERLAY ===== */
.accent-overlay {
    animation: slideInDown 0.6s ease;
}

/* ===== FORMS ===== */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"],
select,
textarea {
    background-color: transparent;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-white);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-gray-medium);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-white);
}

/* ===== SOCIAL LINKS ===== */
.social-links a {
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

/* ===== CART ===== */
.cart-count {
    animation: fadeIn 0.3s ease;
}

.cart-item {
    transition: var(--transition-smooth);
}

.cart-item:hover {
    background-color: rgba(30, 30, 30, 0.9);
}

/* ===== MODALS ===== */
.modal {
    backdrop-filter: blur(10px);
}

/* ===== LOADING STATE ===== */
.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== UTILITY CLASSES ===== */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
    backdrop-filter: blur(15px);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-white);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-medium) var(--color-black);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* !important needed here: the Tailwind CDN stylesheet is injected after
       this file, so equal-specificity utility classes (.right-12, .max-w-2xl,
       .absolute) would otherwise win the cascade over these overrides. */
    .hero-text {
        right: 1.5rem !important;
        max-width: 90% !important;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text > div {
        font-size: 2rem;
    }

    /* Decorative signature is redundant with the "day one Run" wordmark
       already in .hero-text on small screens, and there's no clean spot
       to stack it without overlapping the countdown widget. */
    .hero-signature {
        display: none !important;
    }

    .hero-widget {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1.5rem !important;
        max-width: none !important;
    }

    .product-overlay h3 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Absolutely positioned above the "community runs" span mid-sentence;
       below 768px the paragraph reflows at every width and the label drifts
       onto unrelated words instead of sitting over its anchor text. */
    .accent-overlay {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    transition: var(--transition-smooth);
}

.filter-btn.active {
    background-color: white;
    color: black;
}

/* ===== IMAGE LAZY LOADING ===== */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* ===== SELECTION STYLES ===== */
::selection {
    background-color: var(--color-accent-red);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-accent-red);
    color: var(--color-white);
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-bar,
    .footer,
    .cart,
    button {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== TRANSITIONS ===== */
section {
    transition: opacity 0.5s ease-in-out;
}

/* ===== GRADIENTS ===== */
.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent, rgba(0,0,0,0.9));
}

/* ===== END OF STYLES ===== */