/* Portfolio Styles - Terminal Theme (Dracula Inspired) */
:root {
    /* Dracula Theme Colors */
    --bg-dark: #282a36;
    --bg-darker: #21222c;
    --fg-primary: #f8f8f2;
    --fg-secondary: #6272a4;
    --term-green: #50fa7b;
    --term-pink: #ff79c6;
    --term-purple: #bd93f9;
    --term-cyan: #8be9fd;
    --term-yellow: #f1fa8c;
    --term-orange: #ffb86c;
    --term-red: #ff5555;
    --border-color: #44475a;
    --selection-bg: #44475a;
}

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

body {
    font-family: 'Courier New', 'Consolas', monospace; /* Terminal font preferred */
    color: var(--fg-primary);
    line-height: 1.6;
    background: var(--bg-dark);
    overflow-x: hidden;
}

::selection {
    background: var(--selection-bg);
    color: var(--term-green);
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section (if used) */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: rgba(68, 71, 90, 0.3);
    border: 1px solid var(--border-color);
    color: var(--fg-primary);
    border-radius: 4px;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--term-purple);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--term-cyan);
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.badge-primary {
    background: rgba(80, 250, 123, 0.1);
    color: var(--term-green);
    border: 1px solid var(--term-green);
}

/* Links */
a {
    color: var(--term-cyan);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--term-pink);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--term-yellow);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.social-link:hover {
    background: rgba(241, 250, 140, 0.1);
    border-color: var(--term-yellow);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--term-pink);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--fg-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

/* About Section (Global fallback) */
.about-section {
    background: rgba(68, 71, 90, 0.2);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.about-section ul {
    list-style: none;
    margin-top: 1rem;
}

.about-section li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--fg-primary);
}

.about-section li::before {
    content: "> ";
    color: var(--term-green);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(68, 71, 90, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--term-purple);
    transform: translateY(-4px);
    background: rgba(68, 71, 90, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    color: var(--term-green);
    font-size: 1.4rem;
    font-weight: 700;
}

.project-title:hover {
    color: var(--term-pink);
    text-decoration: none;
}

.project-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(189, 147, 249, 0.2);
    color: var(--term-purple);
    border: 1px solid var(--term-purple);
    border-radius: 4px;
}

.project-description {
    font-size: 1rem;
    color: var(--fg-primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-highlights {
    background: rgba(33, 34, 44, 0.5);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--term-cyan);
}

.project-highlights h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--term-cyan);
}

.project-highlights ul {
    list-style: none;
}

.project-highlights li {
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
}

.project-highlights li::before {
    content: "$";
    position: absolute;
    left: 0;
    color: var(--term-pink);
    font-family: monospace;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    padding: 0.25rem 0.6rem;
    background: transparent;
    color: var(--term-orange);
    border: 1px solid var(--fg-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.btn-primary {
    background: rgba(80, 250, 123, 0.1);
    color: var(--term-green);
    border-color: var(--term-green);
}

.btn-primary:hover {
    background: var(--term-green);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--fg-primary);
    border-color: var(--fg-secondary);
}

.btn-secondary:hover {
    border-color: var(--term-fg);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.portfolio-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px dashed var(--border-color);
    color: var(--fg-secondary);
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Markdown / Blog Content Overrides */
article.content {
    color: var(--fg-primary);
}

article.content h1, article.content h2, article.content h3 {
    color: var(--term-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article.content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

article.content code {
    background: rgba(68, 71, 90, 0.5);
    color: var(--term-orange);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
}

article.content pre {
    background: #1e1f29;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

article.content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

article.content blockquote {
    border-left: 4px solid var(--term-yellow);
    background: rgba(241, 250, 140, 0.1);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

article.content img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Index.razor Terminal UI Styles (Consolidated) --- */
.welcome-section {
    margin: 1.5rem 0;
}

.ascii-art {
    color: var(--term-green);
    font-size: 10px;
    line-height: 1.2;
    margin: 1rem 0;
    text-align: center;
    font-family: monospace;
}

.intro {
    text-align: center;
    margin: 2rem 0;
}

.intro h1 {
    color: var(--fg-primary);
    font-size: 24px;
    margin: 1rem 0;
}

.hash {
    color: var(--term-green);
}

.description {
    color: var(--term-cyan);
    font-size: 14px;
    margin: 0.5rem 0;
}

.directory-listing {
    margin: 2rem 0;
}

.file-list {
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.file-item {
    display: grid;
    grid-template-columns: 110px 60px 110px 150px 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: rgba(68, 71, 90, 0.2);
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.file-item.directory {
    cursor: pointer;
    border-left: 3px solid var(--term-purple); /* Using purple for directory */
}

.file-item.directory:hover {
    background: rgba(68, 71, 90, 0.4);
    border-left-color: var(--term-green);
    transform: translateX(4px);
}

.file-item.file {
    border-left: 3px solid var(--term-pink); /* Using pink for file */
}

.permissions {
    color: var(--term-yellow);
}

.size {
    color: var(--term-purple);
}

.date {
    color: var(--term-cyan);
}

.name {
    font-weight: 600;
}

.directory-name {
    color: var(--term-purple);
}

.file-name {
    color: var(--fg-primary);
}

.file-item .description {
    color: var(--fg-secondary);
    font-size: 12px;
    text-align: left;
}

.quick-commands {
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: rgba(68, 71, 90, 0.2);
    border-left: 3px solid var(--term-green);
    border-radius: 4px;
}

.hint-label {
    color: var(--term-yellow);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.hints {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hints code {
    background: rgba(98, 114, 164, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    color: var(--term-cyan);
    font-size: 13px;
    margin-right: 1rem;
    display: inline-block;
    min-width: 120px;
}

.hint-desc {
    color: var(--fg-primary);
    opacity: 0.7;
    font-size: 13px;
}

.terminal-input-section {
    margin-top: 2rem;
    background: transparent;
}

.terminal-input-section .command-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
}

.terminal-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--term-yellow);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    padding: 4px 8px;
    margin: 0;
    width: 70%;
    transition: border-color 0.3s;
}

.terminal-input:focus {
    border-bottom-color: var(--term-purple);
}

.terminal-input::placeholder {
    color: var(--fg-secondary);
}

.command-output {
    background: transparent;
    border-left: 2px solid var(--fg-secondary);
    padding: 0.5rem 0 0.5rem 1rem;
    margin: 0.5rem 0 1rem 0;
    color: var(--term-cyan);
}

.command-output pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: transparent; /* Override default pre bg */
    border: none; /* Override default pre border */
}

@media (max-width: 768px) {
    .file-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .ascii-art {
        font-size: 8px;
    }

    .hints {
        flex-direction: column;
    }

    .hints code {
        display: block;
        margin-bottom: 0.25rem;
    }
}
