/* Tags page styles - Plastic keyboard/monitor aesthetic */

/* Plastic monitor variables */
.control-panel {
    --plastic-cream: #d8d4c4;
    --plastic-light: #e5e1d1;
    --plastic-dark: #c5c1b1;
    --plastic-shadow: #a8a498;
    --plastic-edge: #b8b4a4;
}

.control-panel {
    position: relative;
    background:
        linear-gradient(180deg,
            var(--plastic-light) 0%,
            var(--plastic-cream) 3%,
            var(--plastic-cream) 50%,
            var(--plastic-dark) 97%,
            var(--plastic-shadow) 100%
        );
    border-radius: 16px;
    padding: 1.5rem 2rem 2rem;
    border: 3px solid var(--plastic-shadow);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1),
        inset 2px 0 0 rgba(255, 255, 255, 0.2),
        inset -2px 0 0 rgba(0, 0, 0, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--plastic-shadow);
}

.panel-label {
    font-family: 'Arial Black', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7a7868;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.panel-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    border: 1px solid #1a5a28;
    box-shadow:
        0 0 6px #00ff88,
        0 0 12px rgba(0, 255, 136, 0.4);
    animation: led-pulse 2s ease-in-out infinite;
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Keyboard tray inset */
.keyboard-tray {
    background: #2a2a28;
    border-radius: 8px;
    padding: 1rem;
    border: 3px solid #1a1a18;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 3px 6px rgba(0, 0, 0, 0.5),
        0 -1px 0 rgba(255, 255, 255, 0.1);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tags-row {
    display: contents; /* Let children flow directly into parent grid */
}

.tag-key {
    position: relative;
    flex: 0 0 auto; /* Don't grow or shrink */
    min-width: 80px;
    height: 38px; /* Fixed height */
    padding: 0 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.05s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    /* Keycap top surface - slightly concave look */
    background:
        linear-gradient(180deg,
            #f8f8f4 0%,
            #f0f0ea 15%,
            #e8e8e2 50%,
            #e0e0da 85%,
            #d8d8d2 100%
        );
    color: #2a2a2a;

    /* Keycap depth and shadow */
    box-shadow:
        /* Bottom edge - key depth */
        0 3px 0 0 #a8a8a0,
        0 4px 0 0 #989890,
        /* Drop shadow */
        0 5px 8px rgba(0,0,0,0.4),
        /* Top highlight */
        inset 0 1px 0 rgba(255,255,255,0.9),
        /* Inner shadow for concave effect */
        inset 0 -1px 2px rgba(0,0,0,0.05),
        inset 1px 0 1px rgba(255,255,255,0.3),
        inset -1px 0 1px rgba(0,0,0,0.03);
}

.tag-key:hover {
    transform: translateY(1px);
    box-shadow:
        0 2px 0 0 #a8a8a0,
        0 3px 0 0 #989890,
        0 4px 6px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 2px rgba(0,0,0,0.05),
        inset 1px 0 1px rgba(255,255,255,0.3),
        inset -1px 0 1px rgba(0,0,0,0.03);
}

.tag-key:active {
    transform: translateY(3px);
    box-shadow:
        0 0px 0 0 #a8a8a0,
        0 1px 0 0 #989890,
        0 2px 3px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Orange accent keys */
.tag-key.orange {
    background:
        linear-gradient(180deg,
            #ff9a50 0%,
            #ff8533 15%,
            #ff7420 50%,
            #f06810 85%,
            #e05a00 100%
        );
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    box-shadow:
        0 3px 0 0 #b84a00,
        0 4px 0 0 #a04000,
        0 5px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 2px rgba(0,0,0,0.1),
        inset 1px 0 1px rgba(255,255,255,0.2),
        inset -1px 0 1px rgba(0,0,0,0.05);
}

.tag-key.orange:hover {
    box-shadow:
        0 2px 0 0 #b84a00,
        0 3px 0 0 #a04000,
        0 4px 6px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 2px rgba(0,0,0,0.1);
}

.tag-key.orange:active {
    box-shadow:
        0 0px 0 0 #b84a00,
        0 1px 0 0 #a04000,
        0 2px 3px rgba(0,0,0,0.25),
        inset 0 1px 3px rgba(0,0,0,0.15);
}

/* Blue accent keys */
.tag-key.blue {
    background:
        linear-gradient(180deg,
            #6ab0e0 0%,
            #4a9cd0 15%,
            #3a8cc0 50%,
            #2a7cb0 85%,
            #206ca0 100%
        );
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    box-shadow:
        0 3px 0 0 #185080,
        0 4px 0 0 #104070,
        0 5px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 2px rgba(0,0,0,0.1),
        inset 1px 0 1px rgba(255,255,255,0.2),
        inset -1px 0 1px rgba(0,0,0,0.05);
}

.tag-key.blue:hover {
    box-shadow:
        0 2px 0 0 #185080,
        0 3px 0 0 #104070,
        0 4px 6px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 2px rgba(0,0,0,0.1);
}

.tag-key.blue:active {
    box-shadow:
        0 0px 0 0 #185080,
        0 1px 0 0 #104070,
        0 2px 3px rgba(0,0,0,0.25),
        inset 0 1px 3px rgba(0,0,0,0.15);
}

.tag-key .count {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.6rem;
    font-weight: 500;
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
}

.tag-key.orange .count,
.tag-key.blue .count {
    background: rgba(0,0,0,0.2);
}

/* Vent slots on panel - like monitor vents */
.panel-vents {
    position: absolute;
    left: 20px;
    bottom: 12px;
    display: flex;
    gap: 3px;
}

.panel-vents span {
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg,
        var(--plastic-shadow) 0%,
        #5a5a58 30%,
        #4a4a48 50%,
        #5a5a58 70%,
        var(--plastic-shadow) 100%
    );
    border-radius: 1px;
}

/* Model label */
.panel-model {
    position: absolute;
    right: 20px;
    bottom: 12px;
    font-family: 'Arial', sans-serif;
    font-size: 0.55rem;
    font-weight: bold;
    color: #8a8878;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

