/* ============================================================
   Wyniki wystaw — styl specyficzny
   ============================================================ */

.show-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Search form */
.search-form {
    margin-bottom: 1.5rem;
}

.search-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.search-options .form-group {
    flex: 1;
}

/* Progress bar */
.search-progress {
    margin: 1.5rem 0;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.4rem;
}

/* Results */
.show-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-border);
}

.show-results h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.results-count {
    font-weight: 400;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Show result card */
.show-result-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    margin-bottom: 0.75rem;
}

.show-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.show-result-header h3 {
    font-size: 1rem;
    margin: 0;
}

.show-result-header h3 a {
    color: var(--color-primary);
    text-decoration: none;
}

.show-result-header h3 a:hover {
    text-decoration: underline;
}

.show-year {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    background: #f0f0f0;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

/* Show entries table */
.show-entries-table {
    font-size: 0.9rem;
    margin: 0;
}

.show-entries-table th {
    font-size: 0.8rem;
}

.show-entries-table td:first-child {
    width: 40px;
    text-align: center;
    color: var(--color-text-secondary);
}

.show-entries-table code {
    background: #f5f5f5;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.entry-details td {
    padding-top: 0 !important;
    border-top: none !important;
}

.entry-details small {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
    padding: 0 0 0.25rem 0;
    word-break: break-word;
}

/* Result badges */
.result-badge {
    display: inline-block;
    background: #f0f4f8;
    border: 1px solid #d0d8e0;
    color: #3a4a5a;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.1rem 0.15rem;
    white-space: nowrap;
}

.result-bob {
    background: #fde8e8;
    border-color: #e53e3e;
    color: #9b1c1c;
    font-weight: 700;
}

.result-bis {
    background: #e8f0fe;
    border-color: #4a90d9;
    color: #1a4d8c;
    font-weight: 700;
}

.result-nom {
    background: #e6f7ed;
    border-color: #48bb78;
    color: #1c6e3a;
    font-weight: 700;
}

.result-biv {
    background: #fff9db;
    border-color: #d4a017;
    color: #7c5e00;
    font-weight: 700;
}

.result-low {
    background: #4a5568;
    border-color: #2d3748;
    color: #fff;
    font-weight: 600;
}

/* Autocomplete suggestions */
.suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.suggest-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover,
.suggest-item.active {
    background: #f0f4f8;
}

/* Show help */
.show-help {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.show-help p {
    margin: 0.5rem 0;
}
