/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-text: #242424;
    --color-text-secondary: #6B6B6B;
    --color-border: #E6E6E6;
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F9F9F9;
    --color-accent: #1A8917;
    --max-width: 1200px;
    --article-width: 680px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header and Navigation */
header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a {
    color: var(--color-text);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
}

.nav-link,
.nav a {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #156d13;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-switcher a {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 60px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 20px;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Search Form */
.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 12px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    transition: border-color 0.3s;
}

.search-form:focus-within {
    border-color: var(--color-accent);
}

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

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

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-button:hover {
    background: #156d13;
}

.search-button svg {
    flex-shrink: 0;
}

/* Posts Section */
.posts-section {
    margin-top: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-text);
}

.page-header {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 60px;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 86px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 16px;
}

.page-header p {
    font-family: var(--font-sans);
    font-size: 24px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Articles Grid */
.articles-grid,
.post-grid {
    display: grid;
    gap: 48px;
    padding-bottom: 80px;
}

.article-card,
.post-card {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 40px;
}

.article-link,
.post-card > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-meta,
.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.author-name,
.post-meta .author {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text);
}

.post-meta span {
    margin-right: 8px;
}

.article-title,
.post-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.article-title a,
.post-title a {
    color: var(--color-text);
    text-decoration: none;
}

.article-title a:hover,
.post-title a:hover {
    color: var(--color-text-secondary);
}

.article-excerpt,
.post-description {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-footer,
.post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.article-date, .article-read-time {
    font-size: 13px;
}

.post-category {
    display: none;
    background: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
}

.post-category a {
    color: white;
    text-decoration: none;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article/Post Page */
.article-page,
.post-single {
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 60px 24px 120px;
}

.article-header,
.post-header {
    margin-bottom: 40px;
}

.article-page-title,
.post-header h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

.article-page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name-link {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
}

.author-name-link:hover {
    text-decoration: underline;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.meta-divider {
    color: var(--color-border);
}

.btn-follow {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-follow:hover {
    background-color: #156d13;
}

/* Article Body */
.article-body,
.post-body {
    margin-bottom: 60px;
    font-size: 21px;
    line-height: 1.58;
    letter-spacing: -0.003em;
}

.article-body p,
.post-body p {
    margin-bottom: 28px;
    font-size: 21px;
    line-height: 1.58;
    letter-spacing: -0.003em;
}

.drop-cap::first-letter {
    font-size: 72px;
    line-height: 60px;
    float: left;
    margin: 4px 8px 0 0;
    font-weight: 400;
}

.article-body h2,
.post-body h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
}

.article-body h3,
.post-body h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 36px 0 12px;
}

.article-image,
.post-featured-image {
    margin: 40px 0;
}

.article-image img,
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.article-image figcaption {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 8px;
}

blockquote {
    margin: 36px 0;
    padding-left: 24px;
    border-left: 3px solid var(--color-text);
    font-size: 24px;
    font-style: italic;
    line-height: 1.48;
    letter-spacing: -0.014em;
}

blockquote cite {
    display: block;
    font-size: 18px;
    font-style: normal;
    margin-top: 12px;
    color: var(--color-text-secondary);
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: center;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
}

/* Author Card */
.author-card {
    display: flex;
    gap: 20px;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
}

.author-avatar-xl {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-card-content {
    flex: 1;
}

.author-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.author-card-name {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.author-card-name:hover {
    text-decoration: underline;
}

.author-bio {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* Translations */
.post-translations {
    margin: 40px 0;
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.post-translations h3 {
    margin-bottom: 15px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
}

.translations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.translation-link {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.translation-link:hover {
    background: #156d13;
}

/* FAQ */
.post-faq {
    margin: 40px 0;
}

.post-faq h2 {
    margin-bottom: 20px;
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 600;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: var(--color-bg-secondary);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-toggle {
    font-size: 24px;
    color: var(--color-accent);
    font-weight: 300;
}

.faq-answer {
    display: none;
    padding: 20px;
    background: white;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.6;
}

/* Related Articles */
.related-articles,
.related-posts {
    padding-top: 40px;
}

.related-title,
.related-posts h2 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    gap: 24px;
}

.related-card,
.related-post {
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
    transition: opacity 0.2s;
}

.related-card:hover,
.related-post:hover {
    opacity: 0.7;
}

.related-card h4,
.related-post h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.related-post h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.related-excerpt,
.related-post p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.related-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    padding: 8px 16px;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
}

.pagination a:hover,
.pagination a.active {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

/* Footer */
.footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.footer-section p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a,
.footer-links a {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover,
.footer-links a:hover {
    color: var(--color-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 120px;
    font-family: var(--font-serif);
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1;
}

.error-page h2 {
    font-size: 36px;
    font-family: var(--font-serif);
    margin-bottom: 20px;
    color: var(--color-text);
}

.error-page p {
    font-size: 18px;
    font-family: var(--font-sans);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #156d13;
}

/* SSO Styles */
.sso-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.sso-box {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--color-border);
}

.sso-box h1 {
    margin-bottom: 8px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
}

.sso-subtitle {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.sso-providers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.sso-button:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-text-secondary);
}

.sso-button svg {
    flex-shrink: 0;
}

.sso-google:hover {
    background: #f8f9fa;
}

.sso-apple {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.sso-apple:hover {
    background: #000;
}

.sso-github {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

.sso-github:hover {
    background: #1a1e22;
}

.sso-microsoft:hover {
    background: #f8f9fa;
}

.sso-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.sso-footer p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Admin Styles */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--color-bg-secondary);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--color-border);
}

.login-box h1 {
    margin-bottom: 24px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 32px;
}

.admin-panel {
    min-height: 100vh;
    background: var(--color-bg-secondary);
}

.admin-header {
    background: var(--color-text);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.admin-header nav {
    display: flex;
    gap: 20px;
}

.admin-header a {
    color: white;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: opacity 0.2s;
}

.admin-header a:hover {
    opacity: 0.8;
}

.admin-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: 14px;
}

.admin-table th {
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font-weight: 600;
}

.admin-table a {
    color: var(--color-accent);
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-serif);
}

/* RTL Support */
/* Search Page */
.search-page {
    padding: 60px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 60px;
}

.search-header h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-text);
}

.search-info {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-top: 24px;
}

.search-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-secondary);
}

.search-empty h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.search-empty p {
    font-family: var(--font-sans);
    font-size: 18px;
}

.search-results {
    display: grid;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.search-result-card {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 32px;
}

.result-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s;
}

.result-link:hover {
    opacity: 0.8;
}

.result-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--color-text);
}

.result-excerpt {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.result-lang {
    background: var(--color-bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-container {
    flex-direction: row-reverse;
}

body.rtl .nav-left,
body.rtl .nav-right {
    flex-direction: row-reverse;
}

body.rtl .nav ul {
    flex-direction: row-reverse;
}

body.rtl .lang-switcher {
    flex-direction: row-reverse;
}

body.rtl .post-meta span {
    margin-right: 0;
    margin-left: 8px;
}

body.rtl .article-meta {
    flex-direction: row-reverse;
}

body.rtl .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

body.rtl .admin-table th,
body.rtl .admin-table td {
    text-align: right;
}

body.rtl .translations-list {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    direction: rtl;
}

body.rtl .pagination {
    flex-direction: row-reverse;
}

body.rtl blockquote {
    padding-left: 0;
    padding-right: 24px;
    border-left: none;
    border-right: 3px solid var(--color-text);
}

body.rtl .drop-cap::first-letter {
    float: right;
    margin: 4px 0 0 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 16px 20px;
        flex-wrap: wrap;
    }

    .nav-left, .nav-right {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .lang-switcher {
        width: 100%;
        justify-content: center;
        order: 3;
    }

    .hero,
    .page-header {
        padding: 48px 0 40px;
        margin-bottom: 40px;
    }

    .hero-title,
    .page-header h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-subtitle,
    .page-header p {
        font-size: 18px;
    }

    .articles-grid,
    .post-grid {
        gap: 32px;
        padding-bottom: 60px;
    }

    .article-card,
    .post-card {
        padding-bottom: 32px;
    }

    .article-title,
    .post-title {
        font-size: 22px;
    }

    .article-page,
    .post-single {
        padding: 40px 20px 80px;
    }

    .article-page-title,
    .post-header h1 {
        font-size: 36px;
    }

    .article-body p,
    .post-body p {
        font-size: 18px;
    }

    .drop-cap::first-letter {
        font-size: 56px;
        line-height: 48px;
    }

    .article-body h2,
    .post-body h2 {
        font-size: 26px;
        margin: 36px 0 12px;
    }

    .article-body h3,
    .post-body h3 {
        font-size: 20px;
        margin: 28px 0 10px;
    }

    blockquote {
        font-size: 20px;
        padding-left: 16px;
    }

    body.rtl blockquote {
        padding-right: 16px;
    }

    .author-card {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }

    .author-card-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-section h3:empty,
    .footer-section h3:has(> :only-child:empty) {
        display: none;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title,
    .page-header h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .article-page-title,
    .post-header h1 {
        font-size: 28px;
    }

    .article-page-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
