/* Churuchuru Homepage - Ghostty Terminal Emulator Style */
/* Catppuccin Mocha with Bash Terminal Look */

@font-face {
    font-family: 'Hack Nerd Font';
    src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@master/patched-fonts/Hack/Regular/HackNerdFont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
    font-feature-settings: normal;
}

@font-face {
    font-family: 'Hack Nerd Font';
    src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@master/patched-fonts/Hack/Bold/HackNerdFont-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
    font-feature-settings: normal;
}

/* Catppuccin Mocha Colors */
:root {
    --ctp-blue: #89b4fa;
    --ctp-green: #a6e3a1;
    --ctp-yellow: #f9e2af;
    --ctp-red: #f38ba8;
    --ctp-text: #cdd6f4;
    --ctp-subtext0: #a6adc8;
    --ctp-surface0: #313244;
    --ctp-surface1: #45475a;
    --ctp-base: #1e1e2e;
    --ctp-crust: #11111b;
}

* {
    font-family: 'Hack Nerd Font', 'JetBrains Mono', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--ctp-base);
    color: var(--ctp-text);
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* Terminal Window */
.terminal {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Terminal Header/Prompt */
.terminal-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.terminal-prompt {
    color: var(--ctp-green);
    margin-right: 8px;
    white-space: nowrap;
    font-weight: bold;
}

.terminal-command {
    color: var(--ctp-text);
    flex: 1;
    word-break: break-all;
}

.terminal-command.output {
    color: var(--ctp-subtext0);
    margin-left: 0;
}

/* Title Section */
.title-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ctp-surface1);
}

.title-section .title {
    color: var(--ctp-blue);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.title-section .subtitle {
    color: var(--ctp-subtext0);
    font-size: 12px;
}

/* Search/Filter Section */
.search-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-prompt {
    color: var(--ctp-green);
    font-weight: bold;
    white-space: nowrap;
}

#searchInput {
    flex: 1;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--ctp-surface1);
    color: var(--ctp-text);
    font-family: 'Hack Nerd Font', monospace;
    font-size: 14px;
    outline: none;
    padding: 4px 0;
    transition: border-color 0.2s ease;
}

#searchInput:focus {
    border-bottom-color: var(--ctp-blue);
}

#searchInput::placeholder {
    color: var(--ctp-surface1);
}

/* Notebooks List */
.notebooks-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Notebook Item */
.notebook-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 8px;
    background-color: transparent;
    border: 1px solid var(--ctp-surface1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.notebook-item:hover {
    border-color: var(--ctp-blue);
    background-color: rgba(137, 180, 250, 0.05);
    color: var(--ctp-blue);
}

.notebook-item .notebook-title {
    color: var(--ctp-green);
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
}

.notebook-item .notebook-desc {
    color: var(--ctp-subtext0);
    font-size: 12px;
    margin-bottom: 4px;
}

.notebook-item .notebook-path {
    color: var(--ctp-blue);
    font-size: 11px;
    opacity: 0.7;
}

.notebook-item:hover .notebook-path {
    opacity: 1;
}

/* No Results */
#noResults {
    color: var(--ctp-red);
    margin-top: 15px;
    font-size: 13px;
    display: none;
}

#noResults.show {
    display: block;
}

.no-results-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-results-text::before {
    content: "✗";
    color: var(--ctp-red);
    font-weight: bold;
}

/* Footer/Help Text */
.terminal-footer {
    padding: 20px;
    border-top: 1px solid var(--ctp-surface1);
    color: var(--ctp-subtext0);
    font-size: 12px;
    line-height: 1.5;
}

.footer-line {
    margin-bottom: 4px;
}

.footer-line span {
    color: var(--ctp-yellow);
}

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

::-webkit-scrollbar-track {
    background: var(--ctp-surface0);
}

::-webkit-scrollbar-thumb {
    background: var(--ctp-surface1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ctp-blue);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-content {
        padding: 15px;
    }
    
    .title-section .title {
        font-size: 18px;
    }
}

