/* Austin Tech-Forward Theme for Astro
 * Vibrant, innovative, Texas-meets-Silicon Valley
 * Typography: Outfit (display) + Inter (body)
 * Focus: Gradients, rounded friendly UI, neon accents
 */

:root[data-theme='austin'],
.austin-theme {
    /* Map PWB variables to Austin-specific aliases */
    --austin-purple: var(--pwb-primary-color, #9333EA);
    --austin-dark: var(--pwb-secondary-color, #1F2937);
    --austin-orange: var(--pwb-accent-color, #F97316);
    --austin-light: var(--pwb-background-color, #FAFAFA);
    --austin-text: var(--pwb-text-color, #1F2937);

    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;

    /* Friendly rounded corners */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Vibrant shadows */
    --shadow-soft: 0 4px 24px -4px rgba(147, 51, 234, 0.1);
    --shadow-elevated: 0 20px 40px -10px rgba(147, 51, 234, 0.2);
    --shadow-glow-purple: 0 0 40px -10px rgba(147, 51, 234, 0.4);
    --shadow-glow-orange: 0 0 40px -10px rgba(249, 115, 22, 0.4);

    /* Gradient for buttons/accents */
    --gradient-vibrant: linear-gradient(135deg, var(--austin-purple) 0%, #7C3AED 50%, var(--austin-orange) 100%);
    --gradient-sunset: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
}

/* Base styles */
.austin-theme {
    font-family: var(--font-body), system-ui, sans-serif;
    color: var(--austin-text);
    background-color: var(--austin-light);
    -webkit-font-smoothing: antialiased;
}

.austin-theme h1,
.austin-theme h2,
.austin-theme h3,
.austin-theme h4,
.austin-theme h5,
.austin-theme h6 {
    font-family: var(--font-display), system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.austin-theme .font-display {
    font-family: var(--font-display), system-ui, sans-serif;
}

/* Vibrant Gradient Buttons */
.austin-theme .btn-primary,
.austin-theme .btn-base {
    background: var(--gradient-vibrant);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow-purple);
}

.austin-theme .btn-primary:hover,
.austin-theme .btn-base:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px -6px rgba(147, 51, 234, 0.4);
}

.austin-theme .btn-secondary,
.austin-theme .btn-outline {
    background: transparent;
    color: var(--austin-purple);
    border: 2px solid var(--austin-purple);
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.austin-theme .btn-secondary:hover,
.austin-theme .btn-outline:hover {
    background: var(--austin-purple);
    color: #ffffff;
    box-shadow: var(--shadow-glow-purple);
}

/* Friendly rounded Cards */
.austin-theme .property-card,
.austin-theme .card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.austin-theme .property-card:hover,
.austin-theme .card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-8px);
    border-color: rgba(147, 51, 234, 0.2);
}

.austin-theme .property-price {
    font-family: var(--font-display), sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vibrant Header */
.austin-theme header,
.austin-theme .navbar {
    background: var(--pwb-header-background-color, var(--austin-dark));
}

.austin-theme .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.austin-theme .nav-link:hover {
    color: #ffffff;
    background: rgba(147, 51, 234, 0.2);
}

/* Tech-Forward Footer */
.austin-theme footer {
    background: var(--pwb-footer-background-color, #111827);
    color: var(--pwb-footer-text-color, #D1D5DB);
    padding: 5rem 0 2rem;
}

.austin-theme footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.austin-theme footer a:hover {
    color: var(--austin-purple);
}

/* Full-Bleed Hero with Gradient Overlay */
.austin-theme .hero-section,
.austin-theme .pwb-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.austin-theme .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(147, 51, 234, 0.6) 100%);
}

.austin-theme .hero-title {
    font-family: var(--font-display), sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.austin-theme .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

/* "Keep It Weird" badge */
.austin-theme .weird-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-vibrant);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-glow-purple);
}

/* Property type badges */
.austin-theme .type-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--austin-purple);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Guitar/Music icon for Live Music palette */
.austin-theme .music-accent {
    color: var(--austin-purple);
}

/* Forms with rounded, friendly styling */
.austin-theme input,
.austin-theme select,
.austin-theme textarea {
    border: 2px solid #E5E7EB;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.austin-theme input:focus,
.austin-theme select:focus,
.austin-theme textarea:focus {
    border-color: var(--austin-purple);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
    outline: none;
}

/* Utility classes */
.austin-theme .text-purple {
    color: var(--austin-purple);
}

.austin-theme .text-orange {
    color: var(--austin-orange);
}

.austin-theme .bg-dark {
    background-color: var(--austin-dark);
}

.austin-theme .bg-gradient {
    background: var(--gradient-vibrant);
}

.austin-theme .text-gradient {
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card carousel container */
.austin-theme .card-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

.austin-theme .card-carousel>* {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .austin-theme .hero-title {
        font-size: 3rem;
    }

    .austin-theme .hero-section {
        min-height: 75vh;
    }
}

/* Dark mode with neon accents */
@media (prefers-color-scheme: dark) {
    .pwb-auto-dark.austin-theme {
        --austin-light: #0F172A;
        --austin-text: #E2E8F0;
    }
}

.pwb-dark.austin-theme,
html.pwb-dark .austin-theme {
    --austin-light: #0F172A;
    --austin-text: #E2E8F0;
}

/* Neon glow effect for dark mode (like Live Music palette) */
.pwb-dark.austin-theme .property-card:hover,
html.pwb-dark .austin-theme .property-card:hover {
    box-shadow: 0 0 30px -5px var(--austin-purple), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}
