/* Multilingual Typepad Migration CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #e74c3c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

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

/* Header */
.site-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: relative;
}

.site-title a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Language switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.lang-link {
    color: #bdc3c7;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border: 1px solid #34495e;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s;
}

.lang-link:hover,
.lang-link.active {
    background: white;
    color: var(--primary-color);
}

/* Language-specific styling */
.lang-en .lang-link[data-lang="en"],
.lang-fr .lang-link[data-lang="fr"], 
.lang-de .lang-link[data-lang="de"] {
    background: white;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.main-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Blog Post */
.blog-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-header {
    background: var(--light-gray);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1.2;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

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

.post-author {
    margin-left: 1rem;
}

.post-tags {
    margin-top: 0.5rem;
    font-style: italic;
}

.post-content {
    padding: 2rem;
}

/* Content styling */
.post-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    font-style: italic;
}

.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Download links styling */
.post-content a[href*="download"],
.post-content a[href$=".pdf"] {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0.25rem 0;
    text-decoration: none;
    font-weight: bold;
}

.post-content a[href*="download"]:hover,
.post-content a[href$=".pdf"]:hover {
    background: #c0392b;
    text-decoration: none;
}

.post-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
}

.original-post {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.original-post a {
    color: #856404;
    word-break: break-all;
}

.post-categories {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-to-archive {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-to-archive:hover {
    text-decoration: underline;
}

/* Site Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Home page styles */
.home-content {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.home-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.home-content h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Language-specific typography adjustments */
.lang-de body {
    /* German tends to be longer, slightly smaller font might help */
    font-size: 0.95em;
}

.lang-fr .post-content {
    /* French typography preferences */
    text-align: justify;
}

/* Print styles */
@media print {
    .language-switcher,
    .main-nav,
    .site-footer {
        display: none;
    }
}
