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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

h1 {
    font-size: 3rem;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-style: italic;
}

.search-filter {
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #0f3460;
    border-radius: 10px;
    background: #16213e;
    color: #e0e0e0;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #ff6b6b;
}

#searchInput::placeholder {
    color: #6b7280;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #0f3460;
    background: #16213e;
    color: #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-btn:hover {
    background: #0f3460;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

.dystopia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dystopia-card {
    background: linear-gradient(135deg, #1f2937 0%, #16213e 100%);
    border: 2px solid #0f3460;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dystopia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.dystopia-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b6b;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.dystopia-card.hidden {
    display: none;
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 5px 12px;
    background: #0f3460;
    color: #4ecdc4;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.card-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-examples {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.card-examples strong {
    color: #4ecdc4;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background: linear-gradient(135deg, #1f2937 0%, #16213e 100%);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideIn 0.3s;
}

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

.close {
    color: #ff6b6b;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff4444;
}

#modalTitle {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 2rem;
}

#modalBody {
    color: #e0e0e0;
    line-height: 1.8;
}

#modalBody h3 {
    color: #4ecdc4;
    margin-top: 20px;
    margin-bottom: 10px;
}

#modalBody ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

#modalBody li {
    margin-bottom: 8px;
    color: #b0b0b0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .dystopia-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
}
