/* compatibility.css */

.compatibility-container {
    padding: 2rem 0;
    color: #eee;
}

.compat-header {
    text-align: center;
    margin-bottom: 3rem;
}

.matrix-wrapper {
    margin-bottom: 2rem;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 0.5rem;
}

.matrix-scroll {
    overflow-x: auto;
}

.compat-grid {
    display: grid;
    grid-template-columns: 120px repeat(9, minmax(80px, 1fr));
    gap: 2px;
    /* background removed - was causing visible edge on mobile scroll */
    /* border removed - was causing visible edge on mobile scroll */
}

.grid-header-cell, .grid-side-cell, .grid-cell {
    padding: 0.75rem;
    text-align: center;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.grid-header-cell {
    background: #252525;
    font-size: 0.85rem;
    color: #eee;
    min-height: 60px;
}

.grid-header-cell small {
    font-weight: normal;
    color: #666;
    font-size: 0.7rem;
}

.grid-side-cell {
    background: #252525;
    font-size: 0.85rem;
    text-align: left;
    align-items: flex-start;
}

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #333;
}

.grid-header-cell.corner {
    z-index: 20;
    font-weight: bold;
    font-size: 0.75rem;
}

/* Cell Styles */
.grid-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.cell-ok {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: bold;
}

.cell-ok:hover {
    background-color: rgba(40, 167, 69, 0.3);
}

.cell-warn {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.cell-warn:hover {
    background-color: rgba(255, 193, 7, 0.3);
}

/* Info Panel */
.info-panel {
    margin-bottom: 4rem;
    background: #252525;
    border-left: 4px solid var(--color-primary);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e0e0e0;
}

/* Knowledge Section */
.compat-knowledge h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.knowledge-grid .card {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #eee; /* Textfarbe für Karteninhalt */
}

.knowledge-grid .card h3 {
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.knowledge-grid .card p {
    color: #ccc;
    margin: 0;
}

.knowledge-grid .card > *:not(h3) {
    margin-left: 0;
}

.community-card {
    border-left: 4px solid #28a745 !important;
}

.journal-link {
    text-align: center;
    margin-top: 2rem;
}

/* Shop links in recommendations card */
.knowledge-grid .card a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.knowledge-grid .card a:hover {
    color: #ff8c5a;
    text-decoration: underline;
}

.knowledge-grid .card a:visited {
    color: #cc8855;
}

.shop-links {
    margin-bottom: var(--spacing-sm);
    padding-left: 0;
}

.shop-links a {
    display: inline-block;
}

.shop-disclaimer {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .compat-grid {
        grid-template-columns: 90px repeat(9, minmax(60px, 1fr));
    }
    .grid-header-cell, .grid-side-cell, .grid-cell {
        padding: 0.5rem;
    }
    .sticky-col {
        min-width: 90px;
    }
}
