/* Ryan Blakeney Portfolio - Hugo Theme */

:root {
    --bg: #020617;
    --bg-elevated: #0f172a;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --green: #10b981;
    --border: #1e293b;
    --border-light: #334155;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    padding: 0.8rem 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text) !important;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--text) !important;
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active {
    color: var(--accent) !important;
}

.nav-links a.active::after {
    width: 80%;
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

strong {
    color: var(--text);
    font-weight: 600;
}

/* Article Content */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

article h1 {
    margin-bottom: 2rem;
}

article h2 {
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

article h3 {
    margin-top: 2rem;
}

article ul, article ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

article li {
    margin-bottom: 0.5rem;
}

article blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 8px 8px 0;
}

article blockquote p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Cards */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Papers Section */
.paper-list {
    list-style: none;
    padding: 0;
}

.paper-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.paper-list li:last-child {
    border-bottom: none;
}

.paper-list a {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.paper-list .meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* Posts Section */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list h3 {
    margin-bottom: 0.5rem;
}

.post-list .meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.post-list .excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem !important;
    }
    
    article {
        padding: 2rem 1rem;
    }
    
    .hero {
        padding: 4rem 1rem 3rem;
    }
}

/* AI Banner */
.ai-banner {
    background: rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    position: relative;
    z-index: 1001;
}

.ai-banner span {
    color: var(--accent);
    font-weight: 600;
}

.ai-banner a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
}

.ai-banner a:hover {
    border-bottom-style: solid;
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}
