/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: #fdfdfd;
    color: #1f2937;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Typography */
h1 {
    color: #111827;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0 0 24px 0;
    line-height: 1.6;
    max-width: 600px;
}

h2 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Navigation */
.navigation {
    margin-bottom: 24px;
}

/* Desktop tabs */
.nav-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0;
}

/* Mobile dropdown */
.nav-dropdown {
    display: none;
    position: relative;
}

.dropdown-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dropdown-button:active {
    background: #e2e8f0;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    color: #6b7280;
}

.dropdown-button.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item.active {
    color: #3b82f6;
    background: #eff6ff;
}

.nav-link {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 0 16px 0;
    margin-right: 40px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    color: #374151;
}

.nav-link.active {
    color: #111827;
    font-weight: 600;
    border-bottom-color: #3b82f6;
}


/* Weekdays */
.weekdays {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    margin-top: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0; /* Add padding to prevent clipping when buttons move up */
}

.weekdays::-webkit-scrollbar {
    height: 4px;
}

.weekdays::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 2px;
}

.weekdays::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.weekday-title {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    background: #ffffff;
    flex-shrink: 0;
}


.weekday-title:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.weekday-title.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

/* Gym events */
.gym-event {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    padding-left: 16px;
}

.gym-event:hover {
    background: rgba(59, 130, 246, 0.02);
    border-left-color: #3b82f6;
}

.event-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid #9ca3af;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    margin-right: 12px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.toggle-arrow.expanded {
    transform: rotate(90deg);
    border-left-color: #3b82f6;
}

.event-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.gym-name {
    font-weight: 500;
    font-size: 1.125rem;
    color: #3b82f6;
    margin: 0;
    line-height: 1.4;
    cursor: pointer;
}

.gym-name:hover {
    color: #1d4ed8;
}

.gym-name.actual-parkour-gym {
    font-weight: 600;
}

.shift {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 0;
    border: 1px solid #f3f4f6;
}

/* Event details */
.event-details {
    overflow: hidden;
    transition: all 0.25s ease;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    margin-top: 0;
    margin-left: 29px;
}

.event-details.expanded {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
    margin-top: 0;
}

.equipment {
    color: #6b7280;
    font-size: 0.9rem;
    padding-left: 0;
    line-height: 1.6;
}

.equipment-item {
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.equipment-item::before {
    content: '•';
    color: #9ca3af;
    position: absolute;
    left: 0;
    font-weight: 600;
}

.price-and-maps {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.price-item {
    color: #065f46;
    font-weight: 600;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    display: inline-block;
    margin: 0;
    border: 1px solid #d1fae5;
}

.maps-link,
.website-link {
    margin-top: 0;
}

.maps-link a,
.website-link a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #eff6ff;
    display: inline-block;
    transition: all 0.2s ease;
}

.maps-link a:hover,
.website-link a:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Shifts section */
.shifts-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: none;
}

.shifts-title {
    font-weight: 500;
    margin-bottom: 12px;
    color: #374151;
    font-size: 0.95rem;
}

.weekday-shifts {
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    padding: 2px 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    padding-left: 16px;
    position: relative;
}

.weekday-shifts::before {
    content: '•';
    color: #9ca3af;
    position: absolute;
    left: 0;
    font-weight: 600;
}

.weekday-shifts strong {
    color: #374151;
    font-weight: 500;
}

.hours-note {
    color: #9ca3af;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 12px;
    line-height: 1.4;
}

.no-shifts {
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
    color: #d97706;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    display: inline-block;
}

/* No events state */
.no-events {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 64px 32px;
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    h2 {
        font-size: 1.25rem;
        margin: 24px 0 16px 0;
    }
    
    .navigation {
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 8px 0;
    }
    
    .nav-link {
        margin-right: 24px;
        padding: 10px 0 12px 0;
        font-size: 0.9rem;
    }
    
    .gym-event {
        padding: 12px 0;
        margin-bottom: 6px;
        border-left-width: 2px;
        padding-left: 12px;
    }
    
    .event-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .gym-name {
        font-size: 1rem;
        flex: 1;
        min-width: 0;
    }
    
    .shift {
        font-size: 0.8rem;
        padding: 4px 8px;
        flex-shrink: 0;
    }
    
    .event-details {
        margin-left: 0;
        padding-top: 12px;
    }
    
    .price-and-maps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    
    .price-item,
    .maps-link a,
    .website-link a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .equipment-item {
        font-size: 0.85rem;
        margin-bottom: 4px;
        padding-left: 14px;
    }
    
    .disclaimer {
        font-size: 0.85rem;
        padding: 6px 10px;
        margin-top: 8px;
    }
    
    .shifts-section {
        margin-top: 12px;
    }
    
    .shifts-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .weekday-shifts {
        font-size: 0.85rem;
        padding-left: 14px;
    }
    
    .hours-note {
        font-size: 0.75rem;
        margin-top: 8px;
    }
    
    .weekdays {
        gap: 6px;
        margin-top: 8px !important;
        margin-bottom: 20px;
        padding-bottom: 4px;
    }
    
    .weekday-title {
        padding: 12px 16px;
        font-size: 0.85rem;
        min-width: fit-content;
    }
    
    .no-events {
        padding: 32px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }
    
    h1 {
        font-size: 1.625rem;
        margin-bottom: 12px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* Hide desktop tabs and show mobile dropdown */
    .nav-tabs {
        display: none;
    }
    
    .nav-dropdown {
        display: block;
    }
    
    .navigation {
        margin-bottom: 6px;
        gap: 6px 0;
    }
    
    .nav-link {
        margin-right: 16px;
        font-size: 0.85rem;
        padding: 8px 0 10px 0;
    }
    
    .gym-event {
        padding: 10px 0;
        padding-left: 10px;
    }
    
    .gym-name {
        font-size: 0.95rem;
    }
    
    .shift {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .toggle-arrow {
        border-left-width: 4px;
        border-top-width: 2px;
        border-bottom-width: 2px;
        margin-right: 8px;
    }
    
    .price-and-maps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .price-item,
    .maps-link a,
    .website-link a {
        font-size: 0.75rem;
        padding: 4px 8px;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
    }
    
    .equipment-item {
        font-size: 0.8rem;
        padding-left: 12px;
    }
    
    .weekdays {
        gap: 4px;
        margin-top: 4px !important;
        margin-bottom: 16px;
    }
    
    .weekday-title {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .contact-container {
        max-width: 100%;
    }
    
    .contact-links {
        gap: 6px;
    }
    
    .contact-item {
        gap: 8px;
    }
    
    .contact-icon {
        width: 24px;
        font-size: 1rem;
    }
    
    .source-link {
        margin-top: 20px;
        padding-top: 12px;
    }
}

/* Toast notification */
.swipe-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.swipe-toast.show {
    opacity: 1;
}

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

.gym-event {
    animation: fadeIn 0.4s ease forwards;
}

/* External link icon */
.external-icon {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* Text link styling */
.text-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Contact page styles */
.contact-container {
    max-width: 600px;
}

.contact-text {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 1.25rem;
    width: 32px;
    display: flex;
    justify-content: center;
}

.source-link {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.source-link a {
    color: #9ca3af;
    font-size: 0.875rem;
}

.source-link a:hover {
    color: #6b7280;
}

@media (max-width: 480px) {
    .contact-links {
        gap: 16px;
    }
    
    .contact-item {
        gap: 10px;
    }
    
    .contact-icon {
        width: 28px;
        font-size: 1.1rem;
    }
    
    .source-link {
        margin-top: 24px;
        padding-top: 16px;
    }
}