/**
 * Terminal Services - Command Line Interface Style
 * "pera services --list" terminal experience
 */

/* Terminal Wrapper */
.terminal-services-wrapper {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2d2d30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #FF4308; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.terminal-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.action-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Terminal Command Line */
.terminal-command-line {
    padding: 20px;
    background: #1e1e1e;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt {
    color: #4ec9b0;
    font-weight: bold;
}

.prompt-symbol {
    color: #ce9178;
}

.command {
    color: #dcdcaa;
}

.cursor {
    color: #ffffff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal Output Header */
.terminal-output-header {
    padding: 15px 20px;
    background: #1e1e1e;
    border-bottom: 2px solid rgba(255, 67, 8, 0.3);
}

.output-label {
    color: #FEFE1F;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.output-label::before {
    content: '▸ ';
    color: #FB8500;
    margin-right: 5px;
}

/* Terminal Services Slider */
.terminal-services-slider {
    background: #0c0c0c;
    padding: 20px 0;
}

.terminal-services-slider .marquee-wrap {
    background: transparent;
}

/* Terminal Service Items */
.terminal-service-item h3 a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.terminal-service-item h3 a:hover {
    background: rgba(255, 67, 8, 0.1);
    border-color: rgba(255, 67, 8, 0.3);
    transform: translateX(5px);
}

.terminal-icon {
    color: #4ec9b0;
    font-size: 20px;
    font-weight: bold;
    min-width: 20px;
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 0 !important;
}

/* Service Images - Override main.css slider5 styles */
.terminal-services-slider .terminal-service-item h3 a picture,
.terminal-services-slider .terminal-service-item h3 a img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px !important;
    margin: 0 !important;
}

.terminal-services-slider .terminal-service-item h3 a picture {
    display: block;
}

/* Service Text */
.terminal-service-item h3 {
    margin: 0;
}

.terminal-service-item h3 a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.terminal-arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 0 !important;
}

.terminal-service-item h3 a:hover .terminal-arrow {
    opacity: 1;
    transform: translateX(0);
}

.terminal-service-item h3 a:hover .terminal-icon {
    color: #FF4308;
    animation: terminalIconPulse 0.6s ease-in-out;
}

@keyframes terminalIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Typing Animation for Command */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.terminal-command-line .command {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(30) 0.5s both;
}

/* Responsive */
@media (max-width: 991px) {
    .terminal-services-wrapper {
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .terminal-command-line {
        padding: 15px;
        font-size: 12px;
        flex-wrap: wrap;
    }

    .terminal-output-header {
        padding: 12px 15px;
    }

    .output-label {
        font-size: 11px;
    }

    .terminal-service-item h3 a {
        padding: 12px 15px;
        gap: 10px;
    }

    .terminal-icon {
        font-size: 16px;
    }

    .terminal-services-slider .terminal-service-item h3 a picture,
    .terminal-services-slider .terminal-service-item h3 a img {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 767px) {
    .terminal-header {
        padding: 10px 12px;
    }

    .terminal-title {
        font-size: 11px;
    }

    .control-dot {
        width: 10px;
        height: 10px;
    }

    .terminal-command-line {
        padding: 12px;
        font-size: 11px;
        gap: 5px;
    }

    .terminal-services-slider {
        padding: 15px 0;
    }

    .terminal-service-item h3 a {
        padding: 10px 12px;
    }

    .terminal-services-slider .terminal-service-item h3 a picture,
    .terminal-services-slider .terminal-service-item h3 a img {
        width: 30px !important;
        height: 30px !important;
    }
}
