:root {
    --primary-pink: #ff2e73;
    --pink-gradient: linear-gradient(135deg, #ff2e73 0%, #ff6b9d 100%);
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #eaeaea;
    --container-width: 1400px;
    --border-radius: 16px;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --font-family: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --text-dark: #f0f0f0;
    --text-light: #aaaaaa;
    --bg-white: #121212;
    --bg-light: #1e1e1e;
    --border-color: #333333;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; font-family: inherit; transition: var(--transition); }

/* Header */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}
[data-theme="dark"] .navbar { background: rgba(18, 18, 18, 0.85); }
.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--primary-pink); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; position: relative; color: var(--text-light); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-pink); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -22px; left: 0; width: 100%; height: 3px; background: var(--primary-pink); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.location-picker { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-light); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.location-picker:hover { border-color: var(--primary-pink); }
.search-btn { background: transparent; border: none; font-size: 18px; color: var(--text-light); }
.login-btn { background: transparent; border: none; font-weight: 600; color: var(--text-dark); }
.signup-btn { background: var(--pink-gradient); border: none; color: #fff; padding: 8px 20px; border-radius: 20px; font-weight: 600; }
.theme-toggle { background: transparent; border: none; font-size: 18px; color: var(--text-dark); }
.hamburger { display: none; background: transparent; border: none; font-size: 24px; color: var(--text-dark); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px); background: var(--bg-white); border-bottom: 1px solid var(--border-color); padding: 20px; z-index: 999; }
.mobile-menu.open { display: block; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a { font-size: 18px; font-weight: 500; }
.mobile-nav-links .login-link, .mobile-nav-links .signup-link { margin-top: 10px; text-align: center; }
.mobile-nav-links .signup-link { background: var(--pink-gradient); color: #fff; padding: 12px; border-radius: 8px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 60px; align-items: center; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 20px; }
.hero-content .highlight { background: var(--pink-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content .subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; max-width: 450px; }
.hero-cta { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-weight: 600; border: none; }
.btn i { font-size: 16px; }
.btn-primary { background: var(--pink-gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 46, 115, 0.4); }
.btn-secondary { background: transparent; color: var(--text-dark); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-light); }
.btn-primary-dark { background: #1a1a1a; color: #fff; }
.btn-primary-dark:hover { background: #333; }
.btn-full { width: 100%; padding: 10px; border-radius: 8px; margin-top: 10px; }
.btn-outline { background: transparent; color: var(--primary-pink); border: 1px solid var(--primary-pink); }
.btn-outline:hover { background: var(--primary-pink); color: #fff; }
.hero-features { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.9rem; color: var(--text-light); }
.hero-features span { display: flex; align-items: center; gap: 5px; }
.hero-features i { color: var(--primary-pink); }

/* Hero Image Wrapper Fix */
.hero-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-color: #f3f4f6;
    border-radius: var(--border-radius);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.floating-card { position: absolute; bottom: -20px; left: -20px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 15px 20px; border-radius: 12px; box-shadow: var(--box-shadow); display: flex; align-items: center; gap: 15px; }
[data-theme="dark"] .floating-card { background: rgba(30, 30, 30, 0.9); }
.fc-icon { background: var(--pink-gradient); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.fc-count { font-weight: 700; font-size: 1.1rem; display: block; }
.fc-label { font-size: 0.85rem; color: var(--text-light); }

/* Popular Games */
.popular-games { margin-top: 40px; margin-bottom: 60px; }
.popular-games h3 { margin-bottom: 20px; }
.game-pills { display: flex; gap: 12px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.game-pills::-webkit-scrollbar { display: none; }
.pill { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--border-color); border-radius: 30px; white-space: nowrap; font-weight: 500; color: var(--text-light); }
.pill:hover { border-color: var(--primary-pink); color: var(--primary-pink); }
.pill.active { background: var(--pink-gradient); color: #fff; border-color: transparent; }

/* Sections */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.section-header h2 { font-size: 1.8rem; }
.section-header p { color: var(--text-light); }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-bottom: 60px; }
.card { background: var(--bg-white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* Card Image Fix */
.card-image { position: relative; height: 180px; background-color: #f3f4f6; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .tag { position: absolute; top: 10px; left: 10px; background: #fff; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; color: var(--text-dark); }
.card-image .tag.warning { background: #ffebcc; color: #b7791f; }
.card-image .wishlist-btn { position: absolute; top: 10px; right: 10px; background: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); font-size: 16px; }

.card-content { padding: 16px; }
.card-content h4 { margin-bottom: 8px; font-size: 1.1rem; }
.card-content .meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.card-content .meta i { width: 16px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.card-footer .price { font-weight: 700; color: #e67e22; }
.card-footer .price span { font-weight: 400; color: var(--text-light); font-size: 0.8rem; }
.card-footer .host-avatar img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }

/* Event Specific */
.category-badge { position: absolute; top: 10px; left: 10px; padding: 4px 12px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: #fff; }
.category-badge.music { background: #6c5ce7; }
.category-badge.comedy { background: #0984e3; }
.category-badge.workshop { background: #00b894; }
.category-badge.food { background: #e17055; }

/* Interests */
.discover-interests { margin: 60px 0; }
.discover-interests h2 { margin-bottom: 20px; }
.interests-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }
.interests-scroll::-webkit-scrollbar { height: 6px; }
.interests-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.interest-card { min-width: 200px; height: 120px; border-radius: var(--border-radius); overflow: hidden; position: relative; flex-shrink: 0; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); background-color: #f3f4f6; }
.interest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.interest-card:hover img { transform: scale(1.05); }
.interest-content { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; color: #fff; }
.interest-content h4 { font-size: 0.95rem; }
.interest-content i { font-size: 14px; margin-top: 4px; }

/* How It Works */
.how-it-works { margin: 80px 0; text-align: center; }
.how-it-works h2 { margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.step { background: var(--bg-light); padding: 30px 20px; border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: var(--transition); }
.step:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }
.step-icon { font-size: 2rem; color: var(--primary-pink); margin-bottom: 10px; }
.step-content h3 { margin-bottom: 8px; }
.step-content p { color: var(--text-light); font-size: 0.9rem; }

/* Newsletter */
.newsletter { background: var(--pink-gradient); color: #fff; padding: 60px 0; margin-top: 60px; }
.newsletter-container { display: flex; justify-content: center; align-items: center; }
.newsletter-content { text-align: center; max-width: 600px; }
.newsletter-content h2 { font-size: 2rem; margin-bottom: 10px; }
.newsletter-content p { margin-bottom: 20px; opacity: 0.9; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input { padding: 12px 20px; border: none; border-radius: 8px; width: 250px; font-size: 1rem; outline: none; }

/* Footer */
.footer { background: var(--bg-light); padding: 60px 0 20px 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light); }
.footer-col ul li a:hover { color: var(--primary-pink); }
.footer-logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.footer-logo span { color: var(--primary-pink); }
.brand-col p { color: var(--text-light); margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-dark); }
.social-links a:hover { background: var(--primary-pink); color: #fff; }
.app-buttons img { max-width: 120px; margin-right: 10px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; color: var(--text-light); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) { .hero { grid-template-columns: 1fr; } .hero-image-wrapper { min-height: 300px; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .nav-links, .login-btn, .signup-btn, .location-picker, .search-btn, .theme-toggle { display: none; }
    .hamburger { display: block; } .nav-actions { gap: 10px; } .hero-content h1 { font-size: 2.5rem; } .cards-grid { grid-template-columns: 1fr 1fr; } .footer-grid { grid-template-columns: 1fr; } .newsletter-form input { width: 100%; } .newsletter-form button { width: 100%; }
}
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; } .hero-content h1 { font-size: 2rem; } .hero-cta { flex-direction: column; } .hero-cta .btn { width: 100%; justify-content: center; } .section-header { flex-direction: column; align-items: flex-start; } .floating-card { left: 10px; bottom: 10px; padding: 10px 15px; }
}
