/* PaperMod-inspired minimalist blog styles */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666;
    --text-color: #333;
    --light-text: #888;
    --bg-color: #fff;
    --border-color: #e5e5e5;
    --hover-color: #f5f5f5;
    --link-color: #0066cc;
    --link-hover: #004499;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

/* Header */
.header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

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

.site-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

/* Main content */
.main {
    padding-bottom: 80px;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 80px;
    padding: 40px 0;
}

.greeting {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.welcome {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: transparent;
}

.social-link:hover {
    color: var(--primary-color);
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Posts section */
.posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Post item */
.post-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.post-item:hover {
    transform: translateY(-2px);
}

.post-content {
    margin-bottom: 16px;
}

.post-title {
    margin-bottom: 12px;
}

.post-title a {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--link-color);
}

.post-summary {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 0;
}

/* Post meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--light-text);
}

.post-meta time {
    font-weight: 500;
}

.reading-time::before {
    content: "·";
    margin-right: 8px;
    color: var(--border-color);
}

.author::before {
    content: "·";
    margin-right: 8px;
    color: var(--border-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 20px 0 16px;
        margin-bottom: 40px;
    }
    
    .nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero {
        margin-bottom: 60px;
        padding: 20px 0;
    }
    
    .greeting {
        font-size: 36px;
    }
    
    .welcome {
        font-size: 16px;
    }
    
    .social-icons {
        gap: 16px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .posts {
        gap: 32px;
    }
    
    .post-item {
        padding: 24px 0;
    }
    
    .post-title a {
        font-size: 20px;
    }
    
    .post-summary {
        font-size: 15px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .greeting {
        font-size: 28px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .post-title a {
        font-size: 18px;
    }
    
    .post-summary {
        font-size: 14px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #fff;
        --secondary-color: #aaa;
        --text-color: #ddd;
        --light-text: #888;
        --bg-color: #1a1a1a;
        --border-color: #333;
        --hover-color: #2a2a2a;
        --link-color: #66b3ff;
        --link-hover: #4da6ff;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* No posts welcome message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-posts h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.no-posts > p {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.getting-started {
    text-align: left;
    background-color: var(--hover-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.getting-started h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.getting-started ol {
    margin-bottom: 30px;
    padding-left: 24px;
}

.getting-started li {
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.5;
}

.getting-started code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: var(--primary-color);
}

.getting-started pre {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 12px;
    line-height: 1.4;
}

.getting-started pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Focus styles for accessibility */
.nav-link:focus,
.social-link:focus,
.post-title a:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection styles */
::selection {
    background-color: var(--link-color);
    color: white;
}

::-moz-selection {
    background-color: var(--link-color);
    color: white;
}

/* Search Section */
.search-section {
    margin: 30px 0;
    text-align: center;
}

.search-container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-box:focus-within {
    border-color: var(--link-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--light-text);
}

.search-btn {
    padding: 12px 16px;
    border: none;
    background: var(--link-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--link-hover);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.search-result-item:hover {
    background-color: var(--hover-color);
}

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

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 14px;
}

.search-result-summary {
    font-size: 13px;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--light-text);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--light-text);
    font-size: 14px;
}

.search-highlight {
    background-color: rgba(255, 235, 59, 0.3);
    padding: 1px 2px;
    border-radius: 2px;
}

/* Responsive Design for Search */
@media (max-width: 640px) {
    .search-container {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

