/* Core Design System for Shows and Events Finder */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

/* Common Components */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Fancy Sliding Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.admin-link {
    color: var(--accent);
}

.nav-links a.admin-link::after {
    background: var(--accent);
}

.nav-links a.btn {
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Event List */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}

.event-body {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.event-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.125rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}

/* Setup Page */
.setup-container {
    max-width: 500px;
    margin: 5rem auto;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.setup-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {

    .responsive-split,
    .header-split {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar-map {
        position: static !important;
        height: 450px !important;
        width: 100% !important;
        margin-top: 2rem;
        order: 2;
    }

    #home-map,
    #single-map {
        height: 100% !important;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        padding: 2.5rem 1rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .search-form {
        grid-template-columns: 1fr !important;
    }

    .search-form>* {
        border-left: none !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .search-form button {
        border-bottom: none !important;
    }

    .setup-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .event-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .event-meta-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .event-card {
        margin: 0 -15px;
        border-radius: 0;
    }

    .subscription-form {
        flex-direction: column !important;
    }

    .subscription-form>* {
        width: 100% !important;
    }
}

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

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}