/*
Theme Name: Game Night Planner
Theme URI: https://game-night-planner.com
Description: Child theme for Game Night Planner based on GeneratePress.
Author: Florian Schürmann
Author URI: https://game-night-planner.com
Template: generatepress
Version: 0.1.0
Text Domain: game-night-planner
*/

body {
    background-color: #050816;
}

/* =============================================
   GNP Collection
   ============================================= */

.gnp-collection__notices {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.gnp-collection__notices p { margin: 0; }
.gnp-collection__notices--success {
    background: #0e2a1a;
    border-left: 3px solid #4caf50;
    color: #a5d6a7;
}
.gnp-collection__notices--error {
    background: #2a0e0e;
    border-left: 3px solid #e53935;
    color: #ef9a9a;
}

/* Search form */
.gnp-collection__bgg-search { margin-bottom: 24px; }
.gnp-collection__bgg-search label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0c0d0;
    font-size: 0.9em;
}
.gnp-collection__bgg-search input[type="text"] {
    padding: 6px 10px;
    background: #0d1224;
    border: 1px solid #2a3060;
    border-radius: 4px;
    color: #e0e0f0;
    min-width: 220px;
}
.gnp-collection__bgg-search button {
    padding: 6px 16px;
    background: #1e2a5a;
    border: 1px solid #2a3a8a;
    border-radius: 4px;
    color: #c0d0f0;
    cursor: pointer;
}
.gnp-collection__bgg-search button:hover { background: #2a3a7a; }

/* Search result thumbnail */
.gnp-collection__bgg-search-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: #0a1028;
}
.gnp-collection__bgg-search-thumb--empty {
    border: 1px dashed #1e2a4a;
}
.gnp-collection__bgg-search-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

/* Search results */
.gnp-collection__bgg-results h2 {
    font-size: 1em;
    color: #9090b0;
    margin-bottom: 10px;
}
.gnp-collection__bgg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gnp-collection__bgg-item {
    background: #0d1224;
    border: 1px solid #1e2a4a;
    border-radius: 6px;
}
.gnp-collection__bgg-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}
.gnp-collection__bgg-item-text { flex: 1; min-width: 0; }
.gnp-collection__bgg-name {
    margin: 0;
    color: #d0d0e8;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gnp-collection__bgg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0 0;
    font-size: 0.8em;
    color: #666;
}
.gnp-collection__bgg-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.gnp-collection__bgg-actions button {
    padding: 4px 10px;
    font-size: 0.8em;
    background: #141c38;
    border: 1px solid #2a3060;
    border-radius: 4px;
    color: #a0b0d0;
    cursor: pointer;
}
.gnp-collection__bgg-actions button:hover { background: #1e2a52; }
.gnp-collection__bgg-add-btn--added { opacity: 0.45; cursor: default; }
.gnp-collection__bgg-add-message {
    font-size: 0.8em;
    color: #80b060;
    padding: 2px 12px 4px;
}
.gnp-collection__bgg-details {
    display: none;
    padding: 8px 12px;
    border-top: 1px solid #1e2a4a;
    font-size: 0.85em;
    color: #9090b0;
    line-height: 1.5;
}
.gnp-collection__bgg-details--visible { display: block; }
.gnp-collection__bgg-more { margin-top: 6px; }
.gnp-collection__bgg-more a { color: #6080c0; }

/* Badges */
.gnp-collection__badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gnp-collection__badge--expansion {
    background: #1e0e3a;
    color: #a080d0;
    border: 1px solid #3a1e6a;
}

/* Collection grid */
.gnp-collection__grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
}
.gnp-collection__item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #0d1224;
    border: 1px solid #1e2a4a;
    border-radius: 6px;
    overflow: hidden;
}
.gnp-collection__item-thumb {
    flex-shrink: 0;
}
.gnp-collection__item-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
}
.gnp-collection__item-header {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
}
.gnp-collection__item-name {
    display: block;
    font-size: 0.78em;
    font-weight: 600;
    color: #c0c0d8;
    line-height: 1.3;
}
.gnp-collection__item-version {
    display: block;
    font-size: 0.72em;
    color: #6080a0;
    margin-top: 1px;
}
.gnp-collection__item-year {
    display: block;
    font-size: 0.72em;
    color: #555;
    margin-top: 2px;
}
.gnp-collection__expansions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 0 4px 12px;
    border-left: 2px solid #1e2a4a;
    margin-left: 8px;
}
.gnp-collection__expansions .gnp-collection__item {
    width: 100%;
    opacity: 0.85;
}
.gnp-collection__orphan-title {
    width: 100%;
    margin: 8px 0 4px;
    font-size: 0.85em;
    color: #666;
    border-top: 1px solid #1e2a4a;
    padding-top: 12px;
}

/* Remove button — shown on hover */
.gnp-collection__item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 100%;
    min-height: 56px;
    padding: 0;
    background: transparent;
    border: none;
    border-right: 1px solid #1e2a4a;
    color: #444;
    font-size: 15px;
    cursor: pointer;
    display: none;
    order: -1;
}
.gnp-collection__item:hover .gnp-collection__item-remove { display: flex; align-items: center; justify-content: center; }
.gnp-collection__item-remove:hover {
    background: rgba(180, 30, 30, 0.25);
    color: #ef9a9a;
}

/* =============================================
   GNP Versions panel (inside details)
   ============================================= */

.gnp-collection__versions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1e2a4a;
}
.gnp-collection__alt-title {
    margin: 8px 0 4px;
    font-size: 0.88em;
    color: #9090b0;
}
.gnp-collection__alt-title label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gnp-collection__alt-title-select {
    background: #0d1224;
    color: #c8c8e0;
    border: 1px solid #2a3560;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: inherit;
}
.gnp-collection__versions-heading { margin: 0 0 8px; }
.gnp-collection__versions-count {
    font-size: 0.85em;
    color: #555;
    margin-left: 4px;
}
.gnp-collection__version-filter {
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #9090b0;
}
.gnp-collection__version-filter select {
    background: #0d1224;
    border: 1px solid #2a3060;
    border-radius: 4px;
    color: #c0d0f0;
    padding: 2px 6px;
    margin-left: 4px;
}
.gnp-collection__version-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
}
.gnp-collection__version-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    background: #080f1e;
    border-radius: 4px;
}
.gnp-collection__version-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #0a1028;
    border-radius: 3px;
    overflow: hidden;
}
.gnp-collection__version-thumb img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
}
.gnp-collection__version-info {
    flex: 1;
    min-width: 0;
    font-size: 0.8em;
    line-height: 1.4;
}
.gnp-collection__version-name {
    display: block;
    color: #c0c0d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gnp-collection__version-year { color: #555; }
.gnp-collection__version-lang {
    display: block;
    color: #6080c0;
    font-size: 0.9em;
}
.gnp-collection__bgg-add-btn--version {
    flex-shrink: 0;
    padding: 3px 8px;
    font-size: 0.75em;
}
