/* David Jones Blog - Minimal Technical Style */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #f5f0e6;
    color: #1a1a1a;
    min-height: 100vh;
    line-height: 1.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 240, 230, 0.95);
    padding: 12px 30px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ccc;
}

.site-logo {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo span {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #ffb000;
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 30px 80px;
}

.page-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out;
    font-weight: 500;
    letter-spacing: -1px;
}

.page-title::before {
    content: '// ';
    color: #ffb000;
}

.subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Blog Post List */
.post-list {
    list-style: none;
}

.post-item {
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.post-date {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #ffb000;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Article Page */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.article-date {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.article-title::before {
    content: '// ';
    color: #ffb000;
}

.article-subtitle {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Sections */
.content-section {
    padding: 30px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-section h2 svg {
    color: #ffb000;
    flex-shrink: 0;
}

.content-section h3 {
    font-size: 0.85rem;
    color: #333;
    margin: 25px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #444;
}

.content-section a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #ffb000;
    transition: all 0.2s;
}

.content-section a:hover {
    background: #ffb000;
    color: #000;
}

/* Code */
code {
    font-family: 'JetBrains Mono', monospace;
    background: #e8e3d9;
    padding: 2px 6px;
    font-size: 0.85rem;
    color: #1a1a1a;
}

pre {
    background: #1a1a1a;
    padding: 25px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
    font-size: 0.8rem;
    line-height: 1.7;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    margin: 20px 0;
    background: #ccc;
    border: 1px solid #ccc;
}

.tech-card {
    background: #f5f0e6;
    padding: 20px;
    transition: background 0.2s;
}

.tech-card:hover {
    background: #ebe6dc;
}

.tech-card .label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.tech-card .value {
    font-size: 0.9rem;
    color: #1a1a1a;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 15px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #555;
    font-size: 0.9rem;
}

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

.feature-list .icon {
    color: #ffb000;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Prompt Example */
.prompt-example {
    background: #ebe6dc;
    border-left: 3px solid #ffb000;
    padding: 20px 25px;
    margin: 20px 0;
}

.prompt-example .label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.prompt-example p {
    font-style: italic;
    color: #555;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Architecture Diagram */
.architecture-diagram {
    background: #ebe6dc;
    border: 1px solid #ccc;
    padding: 40px 20px;
    margin: 25px 0;
    text-align: center;
    overflow-x: auto;
}

.architecture-diagram .flow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: max-content;
}

.architecture-diagram .box {
    background: #f5f0e6;
    border: 1px solid #ffb000;
    padding: 12px 16px;
    font-size: 0.75rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    white-space: nowrap;
}

.architecture-diagram .box:hover {
    background: #ffb000;
    color: #000;
}

.architecture-diagram .arrow {
    color: #ffb000;
    font-size: 1.2rem;
    padding: 0 8px;
    flex-shrink: 0;
}

/* Screenshot Carousel */
.screenshot-carousel {
    margin: 25px 0;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
}

.carousel-slides {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.85);
    color: #e0e0e0;
    padding: 10px 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffb000;
    color: #000;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.carousel-dot {
    width: 24px;
    height: 4px;
    border: none;
    background: #ccc;
    cursor: pointer;
}

.carousel-dot.active {
    background: #ffb000;
}

.carousel-caption {
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Page */
.bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245, 240, 230, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #ccc;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 100;
}

footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffb000;
}

footer .footer-left,
footer .footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #ffb000;
}

/* Responsive */
@media (max-width: 600px) {
    .page-title,
    .article-title {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 80px 20px 40px;
    }

    .sticky-nav {
        padding: 10px 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .architecture-diagram .flow {
        flex-direction: column;
    }

    .architecture-diagram .arrow {
        transform: rotate(90deg);
    }
}
