/* Consolidated styles for itworkedyesterday.dev (moved to css/) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #34495e;
    --accent-color: #4A90E2;
    --accent-dark: #357ABD;
    --link-color: var(--accent-color);
    --muted-color: #7f8c8d;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fafbfc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cursor {
    color: white;
    font-size: 28px;
    font-family: 'JetBrains Mono', monospace;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 1; }
    51% { opacity: 0; }
    100% { opacity: 0; }
}

/* Logo variants */
.yesterday-box {
    color: white;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.iwy-letters {
    color: white;
    font-size: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 2px;
}

.site-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.tagline {
    font-size: 14px;
    color: var(--muted-color);
    font-weight: 300;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
}

nav a:hover {
    color: var(--link-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* Featured Series */
.featured-series {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.series-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.series-card:hover {
    transform: translateY(-5px);
}

.series-card h3 {
    font-family: 'JetBrains Mono', monospace;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.series-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.series-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Blog Posts */
.post {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.post-category.migration {
    background: #27ae60;
}

.post-category.scale {
    background: #e67e22;
}

.post-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--muted-color);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
}

.read-more {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-dark);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: #4A90E2;
}

.author-bio {
    text-align: center;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 15px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.code {
    font-family: 'JetBrains Mono', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #4A90E2;
}

/* All-posts specific adjustments */
body.min-vh-100 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 60px;
}

.coming-soon-content h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.coming-soon-content p {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 30px;
    line-height: 1.8;
}

.back-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.progress-note {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.progress-note h3 {
    font-family: 'JetBrains Mono', monospace;
    color: #2c3e50;
    margin-bottom: 10px;
}

.progress-note p {
    font-size: 16px;
    color: var(--text-color);
}

/* About page */
main.about-main {
    padding: 60px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.profile-initial {
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-family: 'JetBrains Mono', monospace;
    margin: 0 auto 20px;
    font-weight: 600;
}

/* If a photo is used, make it cover the circle */
.profile-initial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.intro-section h2 {
    font-family: 'JetBrains Mono', monospace;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
}

.intro-section p {
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
}

.social-link:hover {
    color: #357ABD;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.content-section h3 {
    font-family: 'JetBrains Mono', monospace;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4A90E2;
}

.content-section p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #4A90E2;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.fun-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.fun-fact-card {
    background: #f8f9fa;
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
}

.fun-fact-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.fun-fact-card h4 {
    font-family: 'JetBrains Mono', monospace;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.fun-fact-card p {
    font-size: 13px;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.4;
}

.speaking-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.speaking-section h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: none;
    color: white;
}

.speaking-section p {
    color: white;
    opacity: 0.95;
}

.speaking-section ul {
    list-style: none;
    margin-top: 15px;
}

.speaking-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.speaking-section li:before {
    content: "→";
    position: absolute;
    left: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .featured-series {
        grid-template-columns: 1fr;
    }
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 28px;
    }
    .fun-facts {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-section,
    .content-section {
        padding: 25px;
    }
}
