/* vishalsood.dev — custom styles on top of Pico CSS */

:root {
    --pico-primary: #4A6FA5;
    --pico-primary-hover: #3A5F95;
    --site-accent: #4A6FA5;
    --site-muted: #6c757d;
}

/* Navigation */
nav .brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--site-accent);
    text-decoration: none;
}

nav .lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

nav .lang-switcher a {
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--site-muted);
}

nav .lang-switcher a.active {
    background: var(--site-accent);
    color: white;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--site-accent);
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--site-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.hero .stats {
    font-size: 0.9rem;
    color: var(--site-muted);
    margin-bottom: 1.5rem;
}

.hero .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero project card */
.hero-project {
    border-left: 4px solid var(--site-accent);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.hero-project h2 {
    color: var(--site-accent);
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}

.hero-project .hero-project-subtitle {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--site-muted);
    margin-bottom: 1rem;
}

/* Domain cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card-grid article {
    margin: 0;
}

.card-grid article h3 {
    color: var(--site-accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-grid article .tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Semantic tag colors */
.tag--lang {
    background: #dbeafe;
    color: #1e40af;
}

.tag--domain {
    background: #dcfce7;
    color: #166534;
}

.tag--tool {
    background: #fef3c7;
    color: #92400e;
}

.tag--method {
    background: #ede9fe;
    color: #5b21b6;
}

.tag--default {
    background: var(--pico-secondary-background);
    color: var(--pico-color);
}

.tag--year {
    background: transparent;
    color: var(--site-muted);
    border: 1px solid var(--pico-secondary-background);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pico-secondary-background);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--site-accent);
}

.timeline-item .period {
    font-size: 0.85rem;
    color: var(--site-muted);
}

.timeline-item h3 {
    margin: 0.25rem 0;
    font-size: 1.1rem;
}

.timeline-item .org {
    color: var(--site-accent);
    font-weight: 600;
}

/* Publications */
.pub-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pico-secondary-background);
}

.pub-entry:last-child {
    border-bottom: none;
}

.pub-entry .pub-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pub-entry .pub-authors {
    font-size: 0.9rem;
    color: var(--site-muted);
}

.pub-entry .pub-journal {
    font-size: 0.9rem;
    font-style: italic;
}

.pub-entry .pub-topic {
    margin-top: 0.25rem;
}

/* Chat */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--pico-secondary-background);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--pico-background-color);
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
}

.chat-message.user {
    background: var(--site-accent);
    color: white;
    margin-left: auto;
}

.chat-message.assistant {
    background: var(--pico-secondary-background);
}

.chat-message.assistant p {
    margin-bottom: 0.5rem;
}

.chat-message.assistant p:last-child {
    margin-bottom: 0;
}

.chat-message.assistant code {
    font-size: 0.85em;
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

.chat-message.assistant pre {
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85em;
}

.chat-message.assistant a {
    color: var(--site-accent);
}

.chat-input-group {
    display: flex;
    gap: 0.5rem;
}

.chat-input-group input {
    flex: 1;
    margin-bottom: 0;
}

.chat-input-group button {
    margin-bottom: 0;
    white-space: nowrap;
}

.chat-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.chat-suggestions button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.chat-meta {
    font-size: 0.85rem;
    color: var(--site-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.chat-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.chat-controls > div {
    flex: 1;
    min-width: 200px;
}

/* Comptoir callout */
.comptoir-callout {
    text-align: center;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pico-secondary-background);
    border-radius: 8px;
    background: var(--pico-card-background-color);
}

.comptoir-callout a[role="button"] {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.comptoir-callout small {
    display: block;
    color: var(--site-muted);
}

/* Marketing plan sections */
.plan-section {
    margin-bottom: 2rem;
}

.plan-section h3 {
    color: var(--site-accent);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    text-align: center;
}

.contact-item .label {
    font-size: 0.85rem;
    color: var(--site-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--site-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .chat-controls {
        flex-direction: column;
    }
}
