/* ==============================================
   NightFind Website - Main Stylesheet
   Dark theme with purple/indigo accents
   ============================================== */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --black: #000000;
    --white: #ffffff;
    --purple: #7C3AED;
    --indigo: #5B21B6;
    --gray-dark: #1a1a1a;
    --gray-medium: #333333;
    --gray-light: #666666;
    --max-width: 1100px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --radius: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--purple);
    color: var(--white);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover {
    color: var(--purple);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* === CONTAINERS === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.page-header {
    margin-top: 100px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    animation: fadeInDown 0.6s ease;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 0.8s ease;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.6));
    animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-tagline {
    font-size: 2rem;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--indigo));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--purple);
}

.btn-secondary:hover {
    background: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* === CARDS === */
.card {
    background: var(--gray-dark);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
    border-color: var(--purple);
}

.card h3 {
    color: var(--purple);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--gray-light);
    line-height: 1.8;
}

/* === SCREENSHOTS CAROUSEL === */
.screenshots {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.screenshots h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--purple), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--spacing-md) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--purple) var(--gray-dark);
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: var(--gray-dark);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}

.carousel-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: var(--gray-medium);
    border-radius: var(--radius);
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 1.2rem;
    border: 2px solid rgba(124, 58, 237, 0.3);
    transition: var(--transition);
}

.carousel-item:hover {
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

/* === CONTENT SECTIONS === */
.content-section {
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 0.8s ease;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-section p,
.content-section li {
    color: var(--gray-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.content-section ul {
    list-style-position: inside;
    margin-left: var(--spacing-md);
}

.content-section ul li {
    margin-bottom: 0.75rem;
}

/* === FAQ === */
.faq-item {
    background: var(--gray-dark);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--purple);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.2);
}

.faq-question {
    color: var(--purple);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.faq-answer {
    color: var(--gray-light);
    line-height: 1.8;
}

/* === CONTACT FORM === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gray-dark);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--gray-medium);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(124, 58, 237, 0.3);
}

.social-icon:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

/* === FOOTER === */
.footer {
    background: var(--gray-dark);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-copyright {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--purple);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Scroll animation trigger */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-lg);
        transition: right 0.3s ease;
        border-left: 1px solid rgba(124, 58, 237, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .hero-tagline {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .carousel-item {
        flex: 0 0 250px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-purple {
    color: var(--purple);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* === FILTER CHIPS === */
.filter-chip {
    padding: 0.6rem 1.25rem;
    background: var(--gray-dark);
    color: var(--gray-light);
    border: 2px solid var(--gray-medium);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--purple);
    color: var(--white);
}

.filter-chip.active {
    background: var(--gray-medium);
    color: var(--white);
    border-color: var(--gray-medium);
}

/* === VENUE CARDS (App Style) === */
.venue-card {
    background: var(--gray-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-medium);
    display: flex;
    flex-direction: row;
    height: 100px;
}

.venue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    border-color: var(--purple);
}

.venue-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--purple) 0%, var(--indigo) 100%);
    border-radius: 12px;
    margin: 0;
}

.venue-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.venue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.venue-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.venue-status.open {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.venue-status.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.venue-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.venue-badge {
    background: var(--gray-medium);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--gray-medium);
    white-space: nowrap;
}

.venue-info {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-info strong {
    color: var(--white);
    font-weight: 600;
}

.venue-price {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.venue-description {
    color: var(--gray-light);
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === EVENT CARDS === */
.event-card {
    background: var(--gray-dark);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--gray-medium);
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

.event-date {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.event-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
}

/* === DETAIL MODAL === */
.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.detail-modal.active {
    display: block;
}

.detail-content {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--gray-dark);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--gray-medium);
}

.detail-header {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--indigo) 100%);
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.detail-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.detail-body {
    padding: 2rem;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.detail-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.detail-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-light);
}

.detail-info-item strong {
    color: var(--white);
    min-width: 120px;
}

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

@media (max-width: 768px) {
    .detail-content {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .venue-card {
        flex-direction: row;
        height: 100px;
    }
    
    .venue-image {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }
}
