/* Štýly stránky /filamenty – porovnávacia tabuľka + detailné karty materiálov. */

.fil-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 20px 96px;
    color: var(--text-primary, #e6e6e6);
}

.fil-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
    color: var(--text-secondary, #b0b0b0);
    font-size: 15px;
    line-height: 1.7;
}

.fil-intro a {
    color: var(--accent, #ff7700);
    text-decoration: none;
}

.fil-intro a:hover {
    text-decoration: underline;
}

.fil-section-title {
    color: var(--accent, #ff7700);
    font-size: 20px;
    margin: 40px 0 6px;
}

.fil-section-hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--text-secondary, #b0b0b0);
}

/* ----------------------------- Tabuľka ----------------------------- */
.fil-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    border-radius: 12px;
}

.fil-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.fil-table th,
.fil-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, rgba(255, 119, 0, 0.16));
    vertical-align: top;
}

.fil-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-secondary, #222);
    color: var(--text-primary, #e6e6e6);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1;
}

.fil-table tbody tr:hover {
    background: rgba(255, 119, 0, 0.05);
}

.fil-table tbody tr:last-child td,
.fil-table tbody tr:last-child th {
    border-bottom: none;
}

.fil-name-cell {
    white-space: nowrap;
}

.fil-name-link {
    color: var(--accent, #ff7700);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.fil-name-link:hover {
    text-decoration: underline;
}

.fil-cell-empty {
    color: var(--text-secondary, #6f6f6f);
}

/* ----------------------------- Odznaky ----------------------------- */
.fil-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
    white-space: nowrap;
}

.fil-name-cell .fil-badge {
    display: block;
    width: fit-content;
}

.fil-badge.env-indoor {
    background: rgba(99, 179, 237, 0.14);
    border-color: rgba(99, 179, 237, 0.4);
    color: #8ecbf0;
}

.fil-badge.env-outdoor {
    background: rgba(72, 187, 120, 0.14);
    border-color: rgba(72, 187, 120, 0.4);
    color: #7ee2a0;
}

.fil-badge.env-both {
    background: rgba(255, 119, 0, 0.14);
    border-color: rgba(255, 119, 0, 0.4);
    color: #ffb066;
}

/* ----------------------------- Karty ----------------------------- */
.fil-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.fil-card {
    scroll-margin-top: 100px;
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    border-radius: 14px;
    background: var(--bg-secondary, #1f1f1f);
    padding: 22px 24px 24px;
    outline: none;
}

.fil-card-highlight {
    animation: fil-card-pulse 1.6s ease;
}

@keyframes fil-card-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 119, 0, 0); }
    25% { box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.55); }
    100% { box-shadow: 0 0 0 0 rgba(255, 119, 0, 0); }
}

.fil-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fil-card-head h2 {
    margin: 0;
    font-size: 22px;
    color: var(--text-primary, #e6e6e6);
}

.fil-card-subtitle {
    margin: 4px 0 16px;
    font-size: 13px;
    color: var(--text-secondary, #b0b0b0);
}

.fil-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 18px;
    padding: 16px 0;
    margin: 0 0 12px;
    border-top: 1px solid var(--border-color, rgba(255, 119, 0, 0.16));
    border-bottom: 1px solid var(--border-color, rgba(255, 119, 0, 0.16));
}

.fil-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fil-spec-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary, #9a9a9a);
}

.fil-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #e6e6e6);
}

.fil-card-desc {
    margin: 4px 0 16px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary, #c2c2c2);
}

.fil-proscons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fil-list h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-primary, #e6e6e6);
}

.fil-list ul {
    margin: 0;
    padding-left: 4px;
    list-style: none;
}

.fil-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 7px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary, #b8b8b8);
}

.fil-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7ee2a0;
    font-weight: 700;
}

.fil-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ff8a8e;
    font-weight: 700;
}

.fil-placeholder-note {
    margin: 8px 0 0;
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary, #9a9a9a);
}

@media (max-width: 600px) {
    .fil-proscons {
        grid-template-columns: 1fr;
    }

    .fil-card {
        padding: 18px 16px 20px;
    }
}
