/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: padding;
}

.header.compact {
    padding: 5px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header.compact .container {
    gap: 10px;
}

.logo {
    will-change: transform;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 5px;
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), margin 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.header.compact .logo h1 {
    transform: scale(0.48);
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    max-height: 30px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.compact .tagline {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 1;
}

.header.hide-controls .nav {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.search-bar {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 300px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.lang-btn {
    padding: 12px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Category Buttons */
.categories {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    opacity: 1;
}

.categories.hide {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    margin-bottom: 0;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* News Feed */
.news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Event Badge */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e8b4fa 0%, #f5869e 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(232, 180, 250, 0.25);
    animation: pulse 4s ease-in-out infinite;
}

.venue-badge {
    background: linear-gradient(135deg, #a8e6cf 0%, #a2d5f2 100%);
    box-shadow: 0 2px 8px rgba(168, 230, 207, 0.2);
    animation: none;
}

.event-card-live {
    border: 1px solid #e8b4fa;
    box-shadow: 0 2px 12px rgba(232, 180, 250, 0.15);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.favorite-btn.favorited {
    background: rgba(255, 255, 255, 0.95);
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Saved Events Button */
.saved-events-btn {
    background: linear-gradient(135deg, #e8b4fa 0%, #f5869e 100%) !important;
    color: white !important;
    border: none !important;
}

.saved-events-btn:hover {
    background: linear-gradient(135deg, #f5869e 0%, #e8b4fa 100%) !important;
    opacity: 0.95;
}

.saved-events-btn.active {
    box-shadow: 0 0 0 2px rgba(232, 180, 250, 0.25);
    transform: translateY(-1px);
}

.event-content {
    padding: 20px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-category {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-category.bars {
    background: #ffeaa7;
    color: #d63031;
}

.event-category.museum {
    background: #dfe6e9;
    color: #2d3436;
}

.event-category.outdoor {
    background: #d5f4e6;
    color: #00b894;
}

.event-category.restaurant {
    background: #ffeaa7;
    color: #e17055;
}

.event-category.concert {
    background: #fab1a0;
    color: #d63031;
}

.event-time {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-description {
    color: #636e72;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.event-location {
    color: #2d3436;
    font-weight: 600;
}

.event-source {
    color: #95a5a6;
    font-style: italic;
}

/* Maps Button */
.maps-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.maps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.maps-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        flex-direction: column;
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .news-feed {
        grid-template-columns: 1fr;
    }

    .categories {
        justify-content: center;
    }

    .logo h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .event-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .event-title {
        font-size: 1.2rem;
    }
}
/* ========================================
   ADD EVENT MODAL & BUTTON
   ======================================== */

/* Floating Add Event Button */
.add-event-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.35);
    transition: all 0.3s ease;
    z-index: 999;
}

.add-event-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(56, 239, 125, 0.45);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* Image Suggestions */
.image-suggestions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.image-option {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.image-option:hover {
    transform: scale(1.05);
}

.image-option.selected {
    border-color: #667eea;
}

.image-option img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: #667eea;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.image-option.selected .image-check {
    display: flex;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* User-Submitted Event Badge */
.user-badge {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.user-submitted-card {
    border: 1px solid #ffa726;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        margin: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-suggestions {
        grid-template-columns: repeat(2, 1fr);
    }

    .add-event-btn {
        bottom: 20px;
        left: 20px;
        padding: 14px 24px;
        font-size: 1rem;
    }
}
