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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #ffffff;
}

header p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.main-nav {
    margin-top: 20px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
}

    .nav-link:hover {
        background: rgba(0,0,0,0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        color: #ffffff;
    }




.diff-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.text-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e1e5e9;
}

.input-group {
    padding: 20px;
    border-right: 1px solid #e1e5e9;
}

.input-group:last-child {
    border-right: none;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.diff-display {
    background-color: #ffffff;
    color: #2c3e50;
    font-weight: 500;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 500px;
}

.diff-display:empty::before {
    content: attr(placeholder);
    color: #7f8c8d;
    font-style: italic;
}

.diff-output {
    padding: 20px;
}

.diff-output label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .text-inputs {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .input-group:last-child {
        border-bottom: none;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Diff highlighting classes */
.diff-added {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
    padding-left: 8px;
    margin: 2px 0;
}

.diff-removed {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
    padding-left: 8px;
    margin: 2px 0;
}

.diff-unchanged {
    background-color: transparent;
    color: #2c3e50;
    padding-left: 8px;
    margin: 2px 0;
}

.diff-line-number {
    color: #495057;
    font-weight: bold;
    margin-right: 8px;
    user-select: none;
}

/* Content Sections */
.content-section {
    margin-top: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.content-card h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.content-card p {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-card ul, .content-card ol {
    color: #2c3e50;
    line-height: 1.7;
    margin-left: 20px;
}

.content-card li {
    margin-bottom: 8px;
}

.content-card strong {
    color: #2c3e50;
}

/* Diff Examples in Content */
.diff-example {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.diff-example.added {
    background-color: #d4edda;
    color: #155724;
}

.diff-example.removed {
    background-color: #f8d7da;
    color: #721c24;
}

.diff-example.unchanged {
    background-color: #e9ecef;
    color: #495057;
}

.diff-example-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.diff-example-line {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
}

.diff-example-line.added {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.diff-example-line.removed {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.diff-example-line.unchanged {
    background-color: transparent;
    color: #495057;
    border-left: 3px solid #6c757d;
}

/* Responsive adjustments for content */
@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h2 {
        font-size: 1.3rem;
    }
}



/* Blog Styles */
.blog-nav {
    margin-bottom: 30px;
}

.blog-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.blog-nav a:hover {
    background: rgba(255,255,255,0.3);
}

/* Blog Layout Styles */
.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-post-card h2 {
    margin-bottom: 15px;
}

.blog-post-card h2 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-post-card h2 a:hover {
    color: #667eea;
}

.blog-post-card .post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.blog-post-card p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-excerpt {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-excerpt h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.post-excerpt ul {
    margin: 0;
    padding-left: 20px;
}

.post-excerpt li {
    color: #2c3e50;
    margin-bottom: 5px;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
}

/* Blog Sidebar */
.blog-sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.category-list, .topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .topic-list li {
    margin-bottom: 8px;
}

.category-list a, .topic-list a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
}

.category-list a:hover, .topic-list a:hover {
    color: #667eea;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Individual Blog Post Styles */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.blog-post h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.blog-post h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.blog-post h4 {
    color: #34495e;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.blog-post p {
    color: #2c3e50;
    margin-bottom: 20px;
}

.blog-post ul, .blog-post ol {
    margin: 20px 0;
    padding-left: 25px;
}

.blog-post li {
    color: #2c3e50;
    margin-bottom: 8px;
}

.blog-post strong {
    color: #2c3e50;
    font-weight: 600;
}

.blog-post code {
    background: #f8f9fa;
    color: #c0392b;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.blog-post pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-footer {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border-left: 4px solid #667eea;
}

.post-footer p {
    margin: 0;
    color: #2c3e50;
}

.post-footer strong {
    color: #2c3e50;
}

/* Responsive Blog Layout */
@media (min-width: 768px) {
    .blog-content {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
        align-items: start;
    }
    
    .blog-posts-grid {
        grid-column: 1;
    }
    
    .blog-sidebar {
        grid-column: 2;
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 767px) {
    .blog-post {
        padding: 25px;
    }
    
    .blog-post h2 {
        font-size: 1.5rem;
    }
    
    .blog-post h3 {
        font-size: 1.2rem;
    }
    
    .blog-sidebar {
        margin-top: 30px;
    }
    
    .blog-post-card {
        padding: 20px;
    }
    
    .blog-post-card h2 a {
        font-size: 1.3rem;
    }
} 

/* 404 Error Page Styles */
.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.error-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 20px 0 15px 0;
}

.error-card h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

.error-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.error-card ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    color: #555;
}

.error-card li {
    margin-bottom: 8px;
    color: #2c3e50;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.suggestion-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.suggestion-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.suggestion-card p {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.popular-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    text-align: left;
}

.popular-links li {
    margin-bottom: 8px;
}

.popular-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.popular-links a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.search-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.search-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Responsive 404 page */
@media (max-width: 768px) {
    .error-card {
        padding: 25px;
    }
    
    .error-card h2 {
        font-size: 1.5rem;
    }
    
    .error-card h3 {
        font-size: 1.2rem;
    }
    
    .suggestions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .suggestion-card {
        padding: 20px;
    }
    
    .search-suggestions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-tag {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
} 