/* BASE CONTAINER & ANORDNUNG */
.modrinth-cards-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Untereinander (Spalten-Anordnung) */
.modrinth-cards-container.modrinth-dir-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Nebeneinander (Zeilen / Grid-Anordnung) */
.modrinth-cards-container.modrinth-dir-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.modrinth-layout-compact {
    grid-template-columns: 1fr;
}

/* CARD BASE */
.modrinth-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modrinth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.modrinth-card-inner {
    padding: 20px;
    display: flex;
    gap: 16px;
}

/* THEMES & TEXTFARBEN FIX */
.modrinth-theme-dark,
.modrinth-theme-dark *,
.modrinth-theme-dark a,
.modrinth-theme-dark a:visited,
.modrinth-theme-dark a:hover,
.modrinth-theme-dark p,
.modrinth-theme-dark span,
.modrinth-theme-dark div,
.modrinth-theme-dark h1,
.modrinth-theme-dark h2,
.modrinth-theme-dark h3 {
    color: #ffffff !important;
}

.modrinth-theme-dark {
    background-color: #18191c !important;
    border: 1px solid #2e3035 !important;
}

/* Beschreibung leicht transparent/hellgrau für bessere Hierarchie */
.modrinth-theme-dark .modrinth-description {
    color: #e0e0e0 !important;
    opacity: 0.9 !important;
}

/* Meta-Texte (Downloads & Stars) */
.modrinth-theme-dark .modrinth-meta,
.modrinth-theme-dark .modrinth-meta * {
    color: #cccccc !important;
}

.modrinth-theme-light {
    background: #ffffff !important;
    color: #1c1e21 !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modrinth-theme-light .modrinth-title,
.modrinth-theme-light .modrinth-title a {
    color: #1c1e21 !important;
}

.modrinth-theme-transparent {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15);
}

/* BANNER LAYOUT */
.modrinth-banner-header {
    height: 120px;
    background-size: cover;
    background-position: center;
}

/* ICON */
.modrinth-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.modrinth-layout-compact .modrinth-icon {
    width: 40px;
    height: 40px;
}

/* CONTENT */
.modrinth-content {
    flex: 1;
}

.modrinth-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.modrinth-title a {
    text-decoration: none;
}

.modrinth-description {
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* BADGES */
.modrinth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.modrinth-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.modrinth-badge-modpack {
    background: #ff8c0022;
    color: #ff8c00 !important;
    border: 1px solid #ff8c0044;
}

.modrinth-badge-loader {
    background: #1bd96a22;
    color: #1bd96a !important;
    border: 1px solid #1bd96a44;
}

.modrinth-badge-version {
    background: #3b82f622;
    color: #60a5fa !important;
    border: 1px solid #3b82f644;
}

/* META STATS */
.modrinth-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* GALERIE */
.modrinth-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.modrinth-gallery-item img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

/* BUTTONS & BUTTON-TEXT LESBARKEIT */
.modrinth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modrinth-button,
.modrinth-button:visited,
.modrinth-button:hover,
.modrinth-button:focus {
    display: inline-block;
    padding: 8px 16px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modrinth-button:hover {
    opacity: 0.85;
}

.modrinth-button-secondary {
    background-color: #2b2d31 !important;
    color: #ffffff !important;
}

/* GUTENBERG EDITOR FIXES & PLACEHOLDER */
.modrinth-editor-block-wrapper {
    position: relative;
    cursor: pointer;
}

.modrinth-editor-preview {
    pointer-events: none;
}

.modrinth-placeholder {
    padding: 20px;
    border: 2px dashed #007cba;
    border-radius: 8px;
    text-align: center;
    background: #ffffff;
    color: #1e1e1e !important;
}

.modrinth-placeholder strong {
    color: #1e1e1e !important;
    font-size: 15px;
}

.modrinth-placeholder p {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #555555 !important;
}
/* Allgemeine Badges (z.B. für Resource Pack Kategorien) */
.modrinth-badge-category {
    background: #8b5cf622;
    color: #a78bfa !important;
    border: 1px solid #8b5cf644;
}