/* ==============================================
   MAC-STYLE TERMINAL STYLES
   ============================================== */

/* Terminal FAB - RIGHT SIDE */
.terminal-fab-mac {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* RIGHT SIDE */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.terminal-fab-mac:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.terminal-fab-mac i {
    font-size: 1.3rem;
    color: white;
}

.fab-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* Terminal Modal */
.terminal-modal-mac {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-modal-mac.active {
    display: flex;
    opacity: 1;
}

/* Mac Terminal Window */
.terminal-window-mac {
    width: 90%;
    max-width: 1100px;
    height: 75vh;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.terminal-modal-mac.active .terminal-window-mac {
    transform: scale(1);
    opacity: 1;
}

/* Mac Header */
.mac-header {
    background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1a1a1a;
    cursor: move;
    /* Draggable */
}

/* Mac Traffic Light Buttons */
.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-btn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.mac-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 7px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mac-header:hover .mac-btn::before {
    opacity: 0.8;
}

.mac-close {
    background: linear-gradient(135deg, #ff5f57 0%, #ff3b30 100%);
    box-shadow: 0 2px 5px rgba(255, 95, 87, 0.3);
}

.mac-close::before {
    content: '\f00d';
    color: #8d0000;
}

.mac-close:hover {
    background: #ff3b30;
}

.mac-minimize {
    background: linear-gradient(135deg, #ffbd2e 0%, #ffa500 100%);
    box-shadow: 0 2px 5px rgba(255, 189, 46, 0.3);
}

.mac-minimize::before {
    content: '\2212';
    color: #8d5900;
}

.mac-minimize:hover {
    background: #ffa500;
}

.mac-maximize {
    background: linear-gradient(135deg, #28ca42 0%, #00d000 100%);
    box-shadow: 0 2px 5px rgba(40, 202, 66, 0.3);
}

.mac-maximize::before {
    content: '\f0b2';
    color: #005900;
    font-size: 6px;
}

.mac-maximize:hover {
    background: #00d000;
}

/* Mac Title */
.mac-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #c0c0c0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mac-title i {
    color: #667eea;
}

/* Mac Actions */
.mac-actions {
    display: flex;
    gap: 8px;
}

.mac-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: #c0c0c0;
    font-size: 12px;
    transition: all 0.2s ease;
}

.mac-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Terminal Body */
.terminal-body-mac {
    flex-grow: 1;
    padding: 20px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    color: #00ff00;
    background: #000000;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Scrollbar */
.terminal-body-mac::-webkit-scrollbar {
    width: 10px;
}

.terminal-body-mac::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body-mac::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 5px;
}

.terminal-body-mac::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Terminal Output */
.terminal-output-mac {
    margin-bottom: 10px;
}

.terminal-line {
    margin-bottom: 4px;
    word-wrap: break-word;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Welcome Message */
.welcome-message {
    margin-bottom: 20px;
}

.ascii-art {
    color: #667eea;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Text Colors */
.text-primary {
    color: #667eea;
    font-weight: 600;
}

.text-secondary {
    color: #a0a0a0;
}

.text-success {
    color: #00ff00;
    font-weight: 600;
}

.text-warning {
    color: #ffbd2e;
}

.text-error {
    color: #ff5f57;
}

.text-info {
    color: #00d4ff;
}

/* Input Line */
.terminal-input-line-mac {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-mac {
    color: #00ff00;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.prompt-user {
    color: #00ff00;
}

.prompt-host {
    color: #667eea;
}

.prompt-dir {
    color: #ffbd2e;
}

.terminal-input-mac {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
    caret-color: #00ff00;
}

.terminal-input-mac::placeholder {
    color: #555;
}

/* Command Output Styles */
.cmd-output {
    margin: 10px 0;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

.cmd-output-error {
    background: rgba(255, 95, 87, 0.1);
    border-left-color: #ff5f57;
}

.cmd-output-success {
    background: rgba(0, 255, 0, 0.05);
    border-left-color: #00ff00;
}

/* Hidden Old Terminal Styles */
.terminal-fab,
.terminal-modal,
.terminal-window,
.terminal-header,
.terminal-body,
.terminal-input-line {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-window-mac {
        width: 95%;
        height: 85vh;
    }

    .fab-label {
        display: none;
    }

    .terminal-fab-mac {
        padding: 14px;
        border-radius: 50%;
    }
}