/* Colorway Showcase Styles */

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    letter-spacing: 0.12em;
}

.colorway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.colorway-card {
    background: #0e0e0e;
    border: 1px solid #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(18px);
}

.colorway-card.visible {
    animation: cardFadeIn 0.4s ease forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.colorway-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.15);
}

.colorway-top {
    padding: 24px 20px 16px;
    display: flex;
    justify-content: center;
}

.macropad-mini {
    position: relative;
    width: 120px;
}

.macropad-shell {
    border-radius: 13px;
    padding: 10px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.6);
    transition: all 0.3s;
}

.macropad-face {
    border-radius: 9px;
    padding: 10px 10px 12px;
    transition: all 0.3s;
}

.macropad-top-row {
    display: flex;
    gap: 7px;
    margin-bottom: 8px;
    align-items: center;
}

.macropad-oled {
    flex: 1;
    height: 40px;
    background: #03080f;
    border-radius: 3px;
    border: 1px solid #0d2030;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.macropad-oled::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px);
    z-index: 2;
}

.oled-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.3rem;
    color: #3dcfff;
    text-align: center;
    line-height: 1.5;
    z-index: 3;
    position: relative;
}

.macropad-knob {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.45), inset 0 2px 4px rgba(255,255,255,0.09);
    transition: all 0.3s;
}

.macropad-knob::after {
    content: '';
    width: 3px;
    height: 12px;
    background: rgba(0,0,0,0.45);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.knob-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid;
    transition: border-color 0.3s;
}

.macropad-keys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.macropad-key {
    height: 31px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.macropad-key::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 5px;
    border-radius: 2px;
    background: rgba(255,255,255,0.05);
}

.macropad-usb {
    width: 10px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 1px;
    margin: 7px auto 0;
    border: 1px solid #2a2a2a;
}

.colorway-bottom {
    padding: 0 16px 18px;
    border-top: 1px solid #161616;
}

.colorway-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    margin: 12px 0 2px;
}

.colorway-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    color: #5a5040;
    line-height: 1.4;
    margin-bottom: 10px;
}

.colorway-parts {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.part-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.62rem;
    color: #6a6050;
}

.part-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.3);
}

.part-label {
    color: #4a4030;
    width: 34px;
    flex-shrink: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
}

@media (max-width: 768px) {
    .colorway-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .macropad-mini {
        width: 110px;
    }
}
