/* Terminal-style theme for gobreaker */
:root {
    /* Page background changes with system theme */
    --bg-page: #1a1815;
    
    /* Terminal always dark but slightly lighter than page */
    --bg-terminal: #242220;
    --bg-header: #2a2826;
    --bg-tabs: #2a2826;
    --bg-content: #242220;
    --bg-hover: #302d2a;
    --bg-changelog: #2a2826;
    
    --text-primary: #e8e4dd;
    --text-secondary: #a8a29a;
    --text-dim: #7a756d;
    
    --accent: #8fa682;
    --border: #3a3733;
    
    --success: #8fa682;
    --error: #c47e8e;
    --warning: #d4b055;
    
    --shadow: rgba(0, 0, 0, 0.5);
    --scrollbar-track: #2a2826;
    --scrollbar-thumb: #3a3733;
    --scrollbar-thumb-hover: #4a4743;
}

@media (prefers-color-scheme: light) {
    :root {
        /* Only page background changes in light mode */
        --bg-page: #b8b5af;
        --shadow: rgba(0, 0, 0, 0.15);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "JetBrains Mono", "Consolas", "Monaco", "Menlo", "Liberation Mono", monospace;
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.terminal-window {
    width: 100%;
    max-width: 1400px;
    background-color: var(--bg-terminal);
    border-radius: 8px;
    box-shadow: 0 20px 50px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    max-height: 900px;
    border: 1px solid var(--border);
}

/* Terminal Header */
.terminal-header {
    background-color: var(--bg-header);
    padding: 12px 8px 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    min-height: 38px;
}


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

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

.control.close {
    background-color: #ff5f57;
}

.control.minimize {
    background-color: #ffbd2e;
}

.control.maximize {
    background-color: #28ca42;
}


/* Terminal Tabs - macOS Style */
.terminal-tabs {
    display: flex;
    flex: 1;
    align-items: stretch;
    padding: 0;
    gap: 1px;
    height: 26px;
}

.tab {
    flex: 1;
    padding: 4px 14px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 12px;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
    background-color: var(--bg-tabs);
    border-radius: 6px 6px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}


.tab:hover:not(.active) {
    background-color: var(--bg-hover);
    color: var(--text-secondary);
}

.tab.active {
    background-color: var(--bg-content);
    color: var(--text-primary);
    border-color: var(--border);
    z-index: 2;
    padding-bottom: 5px;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    height: 1px;
    background-color: var(--bg-content);
    z-index: 3;
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    background-color: var(--bg-content);
    font-size: 13px;
    line-height: 1.6;
}

/* Make all content look like terminal output */
.terminal-content * {
    font-family: "JetBrains Mono", "Consolas", "Monaco", "Menlo", monospace !important;
    font-size: 13px;
    line-height: 1.5;
}

/* Bold text */
b, strong {
    font-weight: 600;
}


.terminal-content p,
.terminal-content ul,
.terminal-content ol {
    margin: 8px 0;
}

.terminal-content li {
    margin: 4px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ASCII Header */
.ascii-header {
    color: var(--accent);
    margin-bottom: 30px;
}

.ascii-header pre {
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Prompts and Commands */
.prompt {
    margin: 10px 0 2px 0;
    color: var(--text-primary);
    font-size: 13px;
}

.prompt-symbol {
    color: var(--accent);
    font-weight: bold;
}

.command {
    color: var(--text-primary);
}

.comment {
    color: var(--text-dim);
}

/* Output */
.output {
    margin-bottom: 15px;
    padding: 5px 0;
}

.output pre {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 13px;
}

.success {
    color: var(--success);
}

.error {
    color: var(--error);
}

.warning {
    color: var(--warning);
}

/* Section Headers */
.section-header {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features */
.feature-list {
    margin: 10px 0;
}

.feature-item {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.feature-icon {
    color: var(--text-secondary);
    font-size: 14px;
}

.feature-name {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 140px;
    font-size: 13px;
}

.feature-desc {
    color: var(--text-secondary);
    flex: 1;
    font-size: 13px;
}

/* Examples */
.example-section {
    margin: 20px 0;
}

.example-title {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Changelog */
.changelog-entry {
    margin: 15px 0;
    padding: 15px;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.version-tag {
    background-color: transparent;
    color: var(--accent);
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-weight: 600;
    font-size: 13px;
}

.version-date {
    color: var(--text-dim);
    font-size: 13px;
}

.change-type {
    color: var(--text-primary);
    font-weight: bold;
    margin: 10px 0;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.change-type.added {
    background-color: rgba(107, 139, 107, 0.2);
    color: var(--success);
}

.changelog-changes ul {
    list-style: none;
    margin-left: 20px;
}

.changelog-changes li {
    color: var(--text-secondary);
    margin: 5px 0;
    position: relative;
}

.changelog-changes li:before {
    content: "+";
    position: absolute;
    left: -15px;
    color: var(--success);
}


/* Footer */
.terminal-footer {
    background-color: var(--bg-header);
    padding: 15px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-left {
    display: flex;
    gap: 20px;
}

.terminal-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.terminal-footer a:hover {
    color: var(--text-primary);
}

/* Scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
    opacity: 0.9;
}


/* Code blocks */
pre, code {
    font-family: "JetBrains Mono", "Consolas", "Monaco", "Menlo", monospace !important;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .terminal-window {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
        
    .terminal-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        margin-left: 10px;
        gap: 1px;
    }
    
    .tab {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .terminal-content {
        padding: 10px 12px;
    }
    
    .terminal-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .feature-item {
        flex-direction: column;
    }
    
    .feature-name {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .tab {
        padding: 4px 8px;
        font-size: 10px;
    }
}