/* ============================================
   HAUNTED HEAD SALOON - Nocturnal Terminal
   Design Direction: A-nocturnal-terminal
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Terminal palette */
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #e8e8e8;
    --text-secondary: #999999;
    --accent-green: #33ff88;
    --accent-green-dark: #00cc66;
    --divider: #333333;
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: 'Inter', 'Noto Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* === CONTAINER === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* === HERO SECTION === */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Mobile: vertical stack */
@media (max-width: 767px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 4rem 1rem 2rem;
    }
}

/* Desktop: split 40/60 */
@media (min-width: 768px) {
    .hero {
        gap: 3rem;
        padding: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 4rem 4rem;
    }
}

.hero-left {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .hero-left {
        flex: 0 0 40%;
        padding-right: 2rem;
    }
}

.hero-right {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hero-right {
        flex: 0 0 60%;
    }
}

/* System init label */
.hero-system-init {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Hero title */
.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: inline-block;
}

/* Kinetic typing animation */
@media (prefers-reduced-motion: no-preference) {
    .title-line {
        opacity: 0;
        transform: translateY(10px);
        animation: typeIn 0.5s ease forwards;
    }
    
    .title-line:nth-child(1) {
        animation-delay: 0.2s;
    }
    
    .title-line:nth-child(2) {
        animation-delay: 0.4s;
    }
    
    .title-line:nth-child(3) {
        animation-delay: 0.6s;
    }
}

@keyframes typeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero prompts */
.hero-prompts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.prompt-line {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-symbol {
    color: var(--accent-green);
    font-weight: 700;
}

.prompt-text {
    color: var(--text-primary);
}

/* Hero CTAs */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 48px;
    min-height: 48px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    letter-spacing: 0.05em;
    position: relative;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: 0 0 0 0 var(--accent-green);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 0 0 2px var(--accent-green);
    background: var(--accent-green-dark);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--accent-green);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* CTA responsive labels */
.cta-mobile { 
    display: none; 
}

@media (max-width: 767px) {
    .btn {
        flex: 1 1 100%;
    }
    
    .cta-desktop { 
        display: none; 
    }
    
    .cta-mobile { 
        display: inline; 
    }
}

/* ASCII box */
.hero-quickaccess {
    margin-top: 2rem;
}

.ascii-box {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ascii-top,
.ascii-bottom {
    color: var(--accent-green);
}

.ascii-line {
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .ascii-box {
        font-size: 11px;
    }
}

/* Hero proof cards */
.hero-proof-card {
    background: var(--bg-secondary);
    border: 1px solid var(--divider);
    padding: 1.5rem;
}

.instagram-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.instagram-avatar {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 2px solid var(--accent-green);
    object-fit: contain;
    object-position: center;
    background: var(--bg-primary);
    padding: 4px;
}

.instagram-handle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.instagram-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.instagram-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.instagram-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-green);
    text-decoration: none;
}

.instagram-link:hover {
    text-decoration: underline;
}

.maps-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.maps-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: var(--accent-green);
    font-size: 18px;
    letter-spacing: 0.1em;
}

.rating-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.maps-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* === TERMINAL STRIP === */
.terminal-strip {
    background: var(--bg-primary);
    border-top: 1px solid var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
    padding: 1rem 0;
    overflow: hidden;
}

.terminal-strip-wrapper {
    max-width: 100%;
}

.terminal-strip-content {
    display: flex;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile: marquee animation */
@media (max-width: 767px) {
    @media (prefers-reduced-motion: no-preference) {
        .terminal-strip-content {
            animation: marquee 20s linear infinite;
        }
        
        @keyframes marquee {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }
    }
    
    @media (prefers-reduced-motion: reduce) {
        .terminal-strip-content {
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .strip-item[aria-hidden="true"] {
            display: none;
        }
    }
}

/* Desktop: static grid */
@media (min-width: 768px) {
    .terminal-strip-content {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .strip-item[aria-hidden="true"] {
        display: none;
    }
}

/* === SOCIAL PROOF === */
.social-proof {
    padding: var(--spacing-xl) 0;
}

.social-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.social-card {
    background: var(--bg-secondary);
    border: 1px solid var(--divider);
    padding: 2rem;
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .social-card[data-reveal="0"] {
        animation: revealIn 0.5s ease forwards;
        animation-delay: 0s;
    }
    
    .social-card[data-reveal="1"] {
        animation: revealIn 0.5s ease forwards;
        animation-delay: 0.1s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-card {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header-full {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-avatar {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid var(--accent-green);
    object-fit: contain;
    object-position: center;
    background: var(--bg-primary);
    padding: 4px;
}

.social-handle {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.social-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-green);
    text-decoration: none;
}

.social-link:hover {
    text-decoration: underline;
}

.maps-rating-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars-large {
    color: var(--accent-green);
    font-size: 24px;
    letter-spacing: 0.2em;
}

.rating-number-large {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
}

.maps-source {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.maps-address {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* === FEATURES LIST === */
.features-list {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.05em;
}

.features-stack {
    display: flex;
    flex-direction: column;
}

.feature-item {
    padding: 1.5rem 0;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--divider);
    background: rgba(51, 255, 136, 0.03);
    opacity: 0;
    transform: translateY(24px);
}

.feature-item:last-child {
    border-bottom: none;
}

@media (prefers-reduced-motion: no-preference) {
    .feature-item[data-reveal="0"] {
        animation: revealIn 0.5s ease forwards;
        animation-delay: 0s;
    }
    
    .feature-item[data-reveal="1"] {
        animation: revealIn 0.5s ease forwards;
        animation-delay: 0.08s;
    }
    
    .feature-item[data-reveal="2"] {
        animation: revealIn 0.5s ease forwards;
        animation-delay: 0.16s;
    }
    
    .feature-item[data-reveal="3"] {
        animation: revealIn 0.5s ease forwards;
        animation-delay: 0.24s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-item {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-title {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 60ch;
}

/* === MAPS SECTION === */
.maps-section {
    margin: var(--spacing-xl) 0 0;
}

.maps-embed {
    width: 100%;
    border-top: 1px solid var(--accent-green);
}

.maps-embed iframe {
    display: block;
    width: 100%;
    height: 400px;
}

@media (min-width: 768px) {
    .maps-embed iframe {
        height: 600px;
    }
}

.maps-info-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--divider);
    padding: 2rem 0;
}

.info-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .info-bar-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 2rem;
    }
}

.info-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .info-bar-item {
        flex-direction: row;
        gap: 0.5rem;
    }
}

.info-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
}

/* === FOOTER === */
.footer {
    background: var(--bg-primary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--divider);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-green);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-address,
.footer-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* === FOCUS STYLES === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* === UTILITIES === */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}
