/* ============================================
   DEVELOPER TERMINAL COMPONENT
   Interactive command-line interface section
   ============================================ */

.terminal-section {
    padding: 4.75rem 2rem 5.25rem;
    position: relative;
    z-index: var(--z-content);
    background:
        radial-gradient(circle at top left, rgba(72, 242, 208, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.98) 0%, rgba(10, 14, 24, 0.96) 100%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .terminal-section {
        padding: 5.5rem 2rem 6rem;
    }
}

.terminal-section-subtitle {
    max-width: 720px;
}

.terminal-window {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.92) 0%, rgba(10, 14, 24, 0.9) 100%);
    border: 1px solid rgba(72, 242, 208, 0.14);
    border-radius: 24px;
    box-shadow: 0 20px 54px rgba(2, 6, 23, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: var(--color-gray-300);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(72, 242, 208, 0.08);
    border-bottom: 1px solid rgba(72, 242, 208, 0.14);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background-color: #ff5f56; box-shadow: 0 0 5px #ff5f56; }
.btn-minimize { background-color: #ffbd2e; box-shadow: 0 0 5px #ffbd2e; }
.btn-maximize { background-color: #27c93f; box-shadow: 0 0 5px #27c93f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.72);
    letter-spacing: var(--tracking-wider);
    font-weight: 600;
}

.terminal-body {
    padding: 1.3rem 1.4rem;
    height: 260px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 0.65rem;
    word-break: break-word;
}

.terminal-prompt {
    color: var(--color-primary-400);
    margin-right: 0.5rem;
    font-weight: bold;
}

.terminal-command {
    color: var(--color-cyan);
}

.terminal-response {
    margin-bottom: 1rem;
    color: var(--color-gray-300);
    line-height: 1.6;
    font-size: 0.94rem;
}

.terminal-response .highlight-cyan {
    color: var(--color-cyan);
    font-weight: bold;
}

.terminal-response .success {
    color: #27c93f;
}

.terminal-input-line {
    display: flex;
    padding: 0 1.4rem 1.35rem;
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    caret-color: var(--color-primary-400);
}

.terminal-input::selection {
    background: var(--color-primary-500);
    color: white;
}

/* Recruiter Auto-Suggestions */
.terminal-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.15rem 0;
    align-items: center;
}

.terminal-hint {
    color: rgba(148, 163, 184, 0.92);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
}

.cmd-btn {
    background: rgba(14, 165, 233, 0.08);
    color: var(--color-cyan);
    border: 1px solid rgba(14, 165, 233, 0.24);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cmd-btn:hover {
    background: rgba(14, 165, 233, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.16);
}

.cmd-btn.btn-recruiter {
    background: rgba(39, 201, 63, 0.12);
    color: #27c93f;
    border-color: rgba(39, 201, 63, 0.22);
    font-weight: bold;
    animation: none;
}

.cmd-btn.btn-recruiter:hover {
    background: rgba(39, 201, 63, 0.16);
    box-shadow: 0 6px 16px rgba(39, 201, 63, 0.16);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

.cmd-btn::before {
    content: '> ';
    opacity: 0.5;
}

[data-theme="light"] .terminal-section {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #edf3f9 100%);
}

[data-theme="light"] .terminal-window {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 252, 0.94) 100%);
    border-color: rgba(14, 165, 233, 0.16);
    box-shadow: 0 18px 44px rgba(148, 163, 184, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    color: #334155;
}

[data-theme="light"] .terminal-header {
    background: rgba(14, 165, 233, 0.08);
    border-bottom-color: rgba(14, 165, 233, 0.16);
}

[data-theme="light"] .terminal-title,
[data-theme="light"] .terminal-response,
[data-theme="light"] .terminal-hint,
[data-theme="light"] .terminal-input {
    color: #334155;
}

[data-theme="light"] .terminal-body::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.26);
}

@media (max-width: 768px) {
    .terminal-window {
        border-radius: 20px;
    }

    .terminal-body {
        height: 230px;
        padding: 1.15rem 1rem;
    }

    .terminal-input-line {
        padding: 0 1rem 1rem;
    }
}
