:root {
    --bg: #121212;
    --text: #e0e0e0;
    --accent: #3a7bd5;
    --dropdown-bg: #2a2a2a;
    --dropdown-hover: #3a3a3a;
    --bg-color: #0a0a0f;
    --card-bg: #151520;
    --text-color: #e0e0e0;
    --accent-color: #3a7bd5;
    --hover-color: #4d8df5;
    --border-color: #252535;
    --divider-color: #2a2a3a;
    --max-width: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.5;
}

.container {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

header h1 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.mods-container {
    background-color: transparent;
    border-radius: 0;
    padding: 0 10px;
    box-shadow: none;
    border: none;
    width: 100%;
    margin: 0;
}

.mods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.mods-header h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0;
    white-space: nowrap;
}

.mods-header h2 i {
    margin-right: 8px;
}

.dropdowns {
    display: flex;
    gap: 10px;
    order: 1;
}

.dropdown {
    position: relative;
    min-width: 120px;
}

.dropdown-btn {
    width: 100%;
    padding: 8px 12px;
    background: #252535;
    border: none;
    border-radius: 6px;
    color: white;
    text-align: left;
}

.dropdown-btn:hover {
    background-color: #2e2e45;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #252535;
    width: 100%;
    z-index: 10;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #252535;
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mods-list {
    margin-top: 20px;
}

.mod-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #1a1a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mod-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.2);
}

.mod-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    overflow: hidden;
}

.mod-info {
    flex-grow: 1;
}

.mod-info h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.mod-description {
    color: #a0a0b0;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.mod-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #a0a0b0;
}

.mod-meta i {
    margin-right: 5px;
    color: var(--accent-color);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #3a7bd5;
    font-size: 1.2rem;
}

.loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
    text-align: center;
}

.error i {
    font-size: 2em;
    color: #f44336;
    margin-bottom: 10px;
}

.no-mods {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.no-mods i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.retry-btn {
    background: #3a7bd5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: #2c5fb3;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #a0a0b0;
    font-size: 1.2rem;
}

.loading-message i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin: 20px;
}

.retry-button {
    background: #3a7bd5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-button:hover {
    background: #2c5fb3;
}

footer {
    margin-top: 40px;
    width: 100%;
    color: #707080;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--divider-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #a0a0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links span {
    color: #a0a0b0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggle-container {
    margin-left: auto;
}

.view-toggle {
    display: flex;
    background: #252535;
    border-radius: 6px;
    padding: 4px;
    position: relative;
}

.view-toggle.grid-view .toggle-thumb {
    transform: translateX(40px);
    background-color: #4CAF50;
}

.toggle-track:hover .toggle-thumb {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.toggle-track {
    position: relative;
    background-color: #252535;
    border-radius: 8px;
    width: 80px;
    height: 40px;
    display: flex;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 8px);
    background: #3a7bd5;
    border-radius: 4px;
    transition: transform 0.3s;
}

.view-btn {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    color: #a0a0b0;
    width: 36px;
    height: 32px;
    min-width: 36px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.view-btn:hover {
    color: var(--text-color);
    background-color: #3a3a3a;
}

.view-btn.active {
    color: white;
}

/* Ansicht-Stile */
.mods-list.list-view {
    display: block;
}

.mods-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.mods-list.grid-view .mod-item {
    display: flex;
    flex-direction: column;
}

.mods-list.grid-view .mod-image {
    height: 0;
    padding-bottom: 56.25%;
}

.mods-list.list-view .mod-image {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    padding-bottom: 0;
}

.mod-tags {
    position: absolute;
    bottom: 10px;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px;
}

.mod-tags span {
    background: rgba(58, 123, 213, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.mod-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #a0a0b0;
}

.mod-meta i {
    margin-right: 5px;
}

.mod-version {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .mods-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-controls {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .view-toggle {
        order: 1;
    }

    .view-toggle,
    .dropdowns {
        width: 100%;
    }

    .dropdowns {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        width: 100%;
    }

    .mod-item {
        flex-direction: column;
    }

    .mod-image {
        width: 100%;
        height: 150px;
    }
}