/* Schematics Page Layout */
.schem-main {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.schem-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schem-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: schem-logo-glow-pulse 3s ease-in-out infinite;
}

@keyframes schem-logo-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 4px 10px rgba(0, 112, 243, 0.2));
    }
    50% {
        filter: drop-shadow(0 8px 22px rgba(0, 112, 243, 0.65));
    }
}

.schem-heading {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.schem-subtext {
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Grid: 3 cards per row, responsive down to 1 on small screens */
.schem-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .schem-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .schem-list {
        grid-template-columns: 1fr;
    }
}

/* Empty state */
.schem-empty {
    color: #52525b;
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem 0;
}

/* Card: image banner on top, name label underneath. Cards are links now. */
.schem-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #14161b;
    border: 1px solid #2a2e3b;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.schem-card.is-visible {
    opacity: 1;
}

.schem-card:hover {
    transform: translateY(-2px);
    border-color: #3b4252;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.schem-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0d0e12;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.schem-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Placeholder shown in place of the image until real schematics are added */
.schem-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    color: #4b5058;
    background: repeating-linear-gradient(
        135deg,
        #0f1115,
        #0f1115 10px,
        #14161b 10px,
        #14161b 20px
    );
}

.schem-placeholder-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: 0.45;
}

.schem-placeholder-text {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #52525b;
}

.schem-name-bar {
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: center;
    border-top: 1px solid #2a2e3b;
    background-color: #14161b;
}

.schem-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f5f5f7;
}