/* Gateway Device - Premium Corsair Style */

.gateway-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    min-height: 500px;
}

.gateway-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #444;
    margin-bottom: 40px;
    text-align: center;
}

.gateway-label span {
    color: #3b82f6;
}

/* Gateway Container */
.gateway-container {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Connection Slots */
.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot {
    width: 100px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Connection port visual */
.slot::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-radius: 0 3px 3px 0;
    transition: all 0.3s ease;
}

.slot.required {
    border-style: solid;
    border-color: rgba(59,130,246,0.4);
    background: rgba(59,130,246,0.05);
}

.slot.required::after {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 10px rgba(59,130,246,0.4);
}

.slot-icon {
    font-size: 24px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.slot-number {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 10px;
    color: #333;
    font-weight: 700;
}

/* Slot Hover States */
.slot:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}

.slot:hover .slot-icon {
    opacity: 0.5;
}

.slot.drag-over {
    border-color: #f59e0b;
    border-style: solid;
    background: rgba(245,158,11,0.08);
    transform: scale(1.05);
}

.slot.drag-over::after {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 15px rgba(245,158,11,0.5);
}

.slot.drag-over .slot-icon {
    opacity: 0.7;
}

.slot.drop-ready {
    border-color: #22c55e;
    background: rgba(34,197,94,0.08);
    transform: scale(1.08);
}

.slot.drop-ready::after {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 20px rgba(34,197,94,0.6);
}

.slot.filled {
    border-style: solid;
    border-color: rgba(34,197,94,0.5);
    background: rgba(34,197,94,0.08);
}

.slot.filled::after {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 10px rgba(34,197,94,0.4);
}

.slot.filled .slot-icon {
    opacity: 1;
}

/* Gateway Device */
.gateway-device {
    width: 180px;
    height: 400px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    position: relative;
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.5),
        0 2px 0 rgba(255,255,255,0.03) inset;
}

/* Ventilation Lines */
.gateway-device::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 20px;
    right: 20px;
    height: 100px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,0.02) 8px,
        rgba(255,255,255,0.02) 10px
    );
    border-radius: 4px;
}

/* Top Section */
.gateway-top {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gateway-leds {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gateway-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #222;
    transition: all 0.3s ease;
    position: relative;
}

.gateway-led::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: inherit;
    filter: blur(2px);
}

.gateway-led.power {
    background: #22c55e;
    box-shadow: 
        0 0 10px rgba(34,197,94,0.6),
        0 0 30px rgba(34,197,94,0.3);
}

.gateway-led.network {
    background: #3b82f6;
    animation: networkPulse 3s ease-in-out infinite;
}

.gateway-led.activity {
    background: #f59e0b;
    animation: activityBlink 0.5s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(59,130,246,0.4);
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 16px rgba(59,130,246,0.7);
        opacity: 1;
    }
}

@keyframes activityBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Gateway Logo */
.gateway-logo {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #3b82f6;
}

.gateway-logo .white {
    color: #fff;
}

/* Port Indicators */
.gateway-ports {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gateway-port {
    width: 10px;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gateway-port::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gateway-port.active::after {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.5);
}

/* Bottom Label */
.gateway-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Status Text */
.gateway-status {
    margin-top: 30px;
    text-align: center;
}

.gateway-status-text {
    font-size: 13px;
    color: #444;
}

.gateway-status-text.ready {
    color: #22c55e;
}

.gateway-status-count {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
}

.gateway-status-count span {
    color: #666;
    font-weight: 400;
}
