/* ARK-Coding: Reiter, Karten, Badges, Screenshots */

/* Reiterleiste + Sprachumschalter */
.coding-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 2px solid #333;
    margin-bottom: 16px;
}

.coding-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coding-tabs a {
    display: block;
    padding: 6px 12px;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
}

.coding-tabs a:hover {
    background-color: #ddd;
}

.coding-tabs li.active a {
    background-color: #333;
    color: gold;
}

.coding-lang {
    display: flex;
    gap: 4px;
    padding-bottom: 4px;
}

.coding-lang a {
    padding: 2px 8px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.coding-lang a.active {
    background-color: #333;
    color: gold;
    border-color: #333;
}

/* Status-Badges */
.coding-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 13px;
    border-radius: 10px;
    color: white;
    background-color: #777;
}

.coding-badge.status-github_available { background-color: #2e7d32; }
.coding-badge.status-github_planned { background-color: #1565c0; }
.coding-badge.status-no_release { background-color: #777; }

/* Detailseite */
.coding-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.coding-platform {
    color: #666;
    font-size: 14px;
}

.coding-tagline {
    font-size: 1.1em;
    font-weight: bold;
}

.coding-bullets li {
    margin-bottom: 4px;
}

.coding-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coding-button {
    display: inline-block;
    padding: 6px 14px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.coding-button:hover {
    background-color: #555;
    color: gold;
}

/* Übersicht: Karten */
.coding-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.coding-card {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
}

.coding-card h2 {
    margin: 4px 0;
    font-size: 1.2em;
}

.coding-card h2 a {
    color: #333;
    text-decoration: none;
}

.coding-card h2 a:hover {
    text-decoration: underline;
}

.coding-card p {
    margin: 6px 0;
}

/* Button immer unten in der Karte */
.coding-card-button {
    margin-top: auto !important;
    padding-top: 8px;
}

/* Screenshots: kleine Vorschau, Klick = groß */
.coding-shots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
}

.coding-shot {
    width: 300px;
    max-width: 100%;
    margin: 0;
}

/* Bildtext unter der Vorschau */
.coding-shot figcaption {
    margin-top: 4px;
    font-size: 13px;
    color: #555;
}

.coding-shot img {
    width: 100%;
    display: block;
    border: 1px solid #ddd;
    cursor: zoom-in;
}

.coding-card .coding-shot {
    width: 100%;
}

/* Platzhalter, solange die Bilddatei fehlt */
.coding-shot-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    color: #666;
    border: 1px dashed #aaa;
    text-align: center;
    box-sizing: border-box;
}

.coding-shot-missing small {
    margin-top: 4px;
}

/* Vergrößertes Bild */
.coding-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
}

.coding-modal img {
    display: block;
    margin: 5vh auto 0;
    max-width: 95%;
    max-height: 82vh;
}

/* Bildtext im vergrößerten Bild */
.coding-modal p {
    max-width: 800px;
    margin: 10px auto 0;
    padding: 0 16px;
    color: white;
    text-align: center;
}
