body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: #f6f8fa;
    color: #24292e;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #444646;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-actions {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.btn-tag {
    flex: 1;
    border: 1px solid #ddd;
    background: white;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-tag:hover {
    background: #eee;
}

.btn-must:hover {
    border-color: #d73a49;
    color: #d73a49;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5da;
}

.card-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f1f1f1;
    border-bottom: 1px solid #e1e4e8;
    position: relative;
}

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

.priority-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.edit-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    z-index: 3;
    border: 1px solid #e1e4e8;
}

.recommended { background-color: #f2994a; }
.must-see { background-color: #d73a49; }
.nice-to-see { background-color: #0366d6; }
.attended { background-color: #28a745; }
.ignore { background-color: #6a737d; }
.unprioritized { background-color: #444646; }

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #24292e;
    line-height: 1.4;
}

.card-venue {
    font-size: 13px;
    color: #6a737d;
    margin: 0 0 10px 0;
}

.card-meta {
    font-size: 12px;
    color: #586069;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f1f1;
    padding-top: 10px;
    margin-top: auto;
}

.badge-btn {
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.2s;
}

.badge-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    gap: 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.nav-lang a {
    text-decoration: none;
    color: #0366d6;
    font-weight: bold;
}

.nav-lang a:hover {
    text-decoration: underline;
}

.nav-lang a.active-lang {
    text-decoration: underline;
    color: #24292e;
}

.nav-link {
    color: #444646 !important;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    text-decoration: underline !important;
}

.nav-logo {
    height: 55px;
    margin-right: 15px;
    transition: height 0.2s ease;
}

@media (max-width: 600px) {
    .top-nav {
        flex-direction: column;
        padding: 12px 15px;
    }
    .nav-menu {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #eaecef;
    }
    .nav-text {
        display: none;
    }
    .mobile-hide {
        display: none !important;
    }
    .nav-logo {
        height: 35px;
        margin-right: 10px;
    }
}

.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
}

.filter-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.filter-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.filter-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    border: 1px solid #d1d5da;
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #586069;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    background-color: #f1f1f1;
    color: #111;
}

.filter-btn.active {
    background-color: #444646;
    color: #ffffff;
    border-color: #444646;
    font-weight: 500;
}

.card.inactive {
    opacity: 0.7;
    filter: grayscale(40%);
}

.card.inactive:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.section-header {
    grid-column: 1 / -1;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #24292e;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e1e4e8;
}

.section-header-count {
    color: #62676c;
    font-weight: 400;
}

/* --- Rendered Markdown Styles (Help Page) --- */
#help-content h1, #help-content h2, #help-content h3, #help-content h4 {
    color: #24292e;
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

#help-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

#help-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

#help-content a {
    color: #0366d6;
    text-decoration: none;
}

#help-content a:hover {
    text-decoration: underline;
}

#help-content ul, #help-content ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

#help-content li {
    margin-bottom: 0.25em;
}

#help-content code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27,31,35,0.05);
    border-radius: 3px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

#help-content pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 3px;
    margin-bottom: 16px;
}

#help-content pre code {
    background-color: transparent;
    padding: 0;
}

#help-content blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin: 0 0 16px 0;
}