/* RevMeet - Enhanced styles.css */

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

:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #242424;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #00d4ff;
    --accent-red: #ff0040;
    --accent-purple: #a855f7;
    --accent-green: #00ff88;
    --accent-yellow: #ffd700;
    --border-color: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Enhanced Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.landing-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, var(--accent-blue) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, var(--accent-purple) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, var(--accent-red) 0%, transparent 50%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    overflow: hidden;
}

.road-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(255, 255, 255, 0.05) 100px,
        rgba(255, 255, 255, 0.05) 110px
    );
    animation: roadMove 3s linear infinite;
}

.speed-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        0deg,
        transparent 0%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 100%
    );
    animation: speedMove 2s ease-in-out infinite;
}

@keyframes roadMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(110px); }
}

@keyframes speedMove {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Multiple Car Animations */
.car-animation {
    position: absolute;
    width: 300px;
    height: 150px;
}

.car-1 {
    bottom: 20%;
    animation: drift1 15s ease-in-out infinite;
}

.car-2 {
    bottom: 30%;
    animation: drift2 18s ease-in-out infinite 2s;
}

@keyframes drift1 {
    0% { left: -300px; transform: rotate(0deg); }
    30% { left: 30%; transform: rotate(-5deg); }
    50% { left: 50%; transform: rotate(5deg); }
    70% { left: 70%; transform: rotate(-3deg); }
    100% { left: 120%; transform: rotate(0deg); }
}

@keyframes drift2 {
    0% { right: -300px; transform: rotate(0deg) scaleX(-1); }
    30% { right: 30%; transform: rotate(5deg) scaleX(-1); }
    50% { right: 50%; transform: rotate(-5deg) scaleX(-1); }
    70% { right: 70%; transform: rotate(3deg) scaleX(-1); }
    100% { right: 120%; transform: rotate(0deg) scaleX(-1); }
}

.car-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--accent-blue));
}

.neon-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px var(--accent-blue)); }
    to { filter: drop-shadow(0 0 20px var(--accent-purple)); }
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(36, 36, 36, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(36, 36, 36, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced Auth Forms */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.auth-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

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

.form-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* Phone Input */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: 120px;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.phone-input {
    flex: 1;
}

/* Code Inputs */
.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.code-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--accent-blue);
    background: var(--bg-dark);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.upload-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-avatar:hover {
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.upload-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Main App */
.app-container {
    display: none;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Enhanced Header */
.app-header {
    background: var(--bg-secondary);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.app-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.location-selector:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

/* Feed */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.feed-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.event-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    margin: 1rem;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

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

.event-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.host-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.host-avatar:hover {
    transform: scale(1.1);
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-info {
    flex: 1;
}

.host-name {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.host-name:hover {
    color: var(--accent-blue);
}

.event-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.event-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 150px;
    display: none;
    box-shadow: var(--shadow);
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--bg-secondary);
}

.event-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: var(--bg-card);
}

.event-content {
    padding: 1rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
}

.tag-supercar { background: rgba(255, 0, 64, 0.2); color: var(--accent-red); }
.tag-jdm { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); }
.tag-bike { background: rgba(0, 212, 255, 0.2); color: var(--accent-blue); }
.tag-classic { background: rgba(0, 255, 136, 0.2); color: var(--accent-green); }
.tag-euro { background: rgba(255, 140, 0, 0.2); color: #ff8c00; }
.tag-muscle { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.tag-trackday { background: rgba(255, 105, 180, 0.2); color: #ff69b4; }
.tag-nightmeet { background: rgba(138, 43, 226, 0.2); color: #8a2be2; }
.tag-openinvite { background: rgba(0, 255, 255, 0.2); color: #00ffff; }
.tag-private { background: rgba(255, 20, 147, 0.2); color: #ff1493; }

.event-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    background: var(--bg-card);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.rsvp-btn {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
}

.rsvp-btn.going {
    background: var(--accent-green);
}

/* Map */
#map, #mapPicker {
    width: 100%;
    height: 100%;
}

.map-container {
    display: none;
    height: calc(100vh - 60px - 70px);
    background: var(--bg-dark);
    position: relative;
}

.map-filter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-chip.active {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

.map-recenter {
    position: absolute;
    bottom: 2rem;
    right: 1rem;
    background: var(--bg-secondary);
    color: white;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.map-recenter:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* Create Event */
.create-container {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 80px;
}

.create-header, .section-header {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card);
}

.photo-preview {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.photo-preview img, .photo-preview video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-option {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-option.selected {
    background: var(--accent-blue);
    color: var(--bg-dark);
    border-color: var(--accent-blue);
}

/* Alerts */
.alerts-container {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 80px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.clear-all-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    color: var(--accent-purple);
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.alert-item:hover {
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.alert-icon {
    font-size: 2rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.alert-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Profile */
.profile-container {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 80px;
}

.profile-header {
    text-align: center;
    padding: 2rem 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    cursor: pointer;
}

.profile-avatar::after {
    content: '📸';
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-blue);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover::after {
    opacity: 1;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.profile-tab {
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.profile-tab.active {
    color: var(--text-primary);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
}

.profile-content {
    min-height: 200px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.event-grid-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.event-grid-item:hover {
    transform: scale(1.05);
}

.event-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.event-grid-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.event-grid-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.event-past-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-upload {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.gallery-upload:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card);
}

/* Garage */
.garage-container {
    display: grid;
    gap: 1rem;
}

.car-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.car-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.car-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-card);
}

.car-info {
    flex: 1;
}

.car-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.car-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.add-car-btn {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-car-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-blue);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.7rem;
}

.notification-badge {
    position: absolute;
    top: 0.3rem;
    right: 1.5rem;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    padding: 1rem;
}

.map-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.map-modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-search {
    padding: 0 1rem;
}

.map-modal-content #mapPicker {
    flex: 1;
}

.map-modal-content .btn {
    margin: 1rem;
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    padding: 1rem;
    overflow-y: auto;
}

.event-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.event-modal.show {
    display: flex;
}

#eventDetailsContent {
    padding: 1rem;
}

.event-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.event-detail-header {
    margin-bottom: 1.5rem;
}

.event-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.event-detail-description {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.attendees-section {
    margin-bottom: 1.5rem;
}

.attendees-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.attendee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attendee-avatar:hover {
    transform: scale(1.1);
}

.attendee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments-section {
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.comment-input {
    flex: 1;
    padding: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.8rem;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-card);
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-author:hover {
    color: var(--accent-blue);
}

.comment-text {
    font-size: 0.9rem;
    margin-top: 0.2rem;
    color: var(--text-secondary);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1003;
    padding: 1rem;
}

.search-modal-content {
    max-width: 600px;
    margin: 0 auto;
    animation: slideDown 0.3s ease;
}

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

.search-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-filter {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-filter.active {
    background: var(--accent-blue);
    color: var(--bg-dark);
    border-color: var(--accent-blue);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-result:hover {
    background: var(--bg-card);
    transform: translateX(5px);
}

/* User Modal */
.user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1004;
    padding: 1rem;
    overflow-y: auto;
}

.user-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

#userProfileContent {
    padding: 2rem;
}

.user-profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    background: var(--bg-card);
}

.user-profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.user-profile-bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.user-profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.follow-btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn.following {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border-color);
}

.follow-btn:not(.following) {
    background: var(--accent-blue);
    color: white;
}

/* Follow Modal */
.follow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1005;
    padding: 1rem;
}

.follow-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.follow-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.follow-list {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.follow-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-item:hover {
    background: var(--bg-card);
}

.follow-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
}

.follow-info {
    flex: 1;
}

.follow-name {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.follow-username {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Settings Modal */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1006;
    padding: 1rem;
}

.settings-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    margin: 0 auto;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.settings-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-list {
    padding: 1rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-item:hover {
    background: var(--bg-card);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    transition: .4s;
    border-radius: 25px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3.5px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent-blue);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Notifications */
.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: slideDown 0.3s ease;
    border: 1px solid var(--border-color);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .logo { font-size: 3rem; }
    .tagline { font-size: 1.1rem; }
    .event-image { height: 300px; }
    .auth-form { padding: 1.5rem; }
    .map-modal-content { height: 90vh; }
    .feature-cards { grid-template-columns: 1fr; }
    .stats-container { flex-direction: column; gap: 1rem; }
    .code-input { width: 40px; height: 40px; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    /* Future light mode support */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

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

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

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
    
    