/* استایل‌های مدرن و زیبا برای ویکی‌پدیا */

:root {
    --primary-color: #3366cc;
    --primary-hover: #2a5499;
    --secondary-color: #0645ad;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --text-dark: #202122;
    --text-muted: #54595d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Modern */
.wiki-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.wiki-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    direction: rtl;
}

.wiki-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-logo:hover {
    transform: scale(1.05);
}

.wiki-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    flex-wrap: wrap;
}

.wiki-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.wiki-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(50%);
}

.wiki-nav a:hover::before {
    width: 80%;
}

.wiki-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Search Box Modern */
.wiki-search-top {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    direction: rtl;
}

.wiki-search-top form {
    display: flex;
    gap: 5px;
}

.wiki-search-top input {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9em;
    transition: var(--transition);
    width: 250px;
    outline: none;
}

.wiki-search-top input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.wiki-search-top button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.wiki-search-top button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Cards Modern */
.card, .bg-white {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover, .bg-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-card {
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Buttons Modern */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Badges Modern */
.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.05);
}

/* Footer Modern */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer h5 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Container Modern */
.container {
    max-width: 1400px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .wiki-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wiki-search-top {
        width: 100%;
    }
    
    .wiki-search-top input {
        width: 100%;
    }
    
    .wiki-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Scrollbar Modern */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Links Modern */
a {
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Input Modern */
input, textarea, select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 10px 15px;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

/* Article Content Styles */
.article-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h1,
.article-content .article-heading-1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.3em;
}

.article-content h2,
.article-content .article-heading-2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 1.3em;
    margin-bottom: 0.7em;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.3em;
}

.article-content h3,
.article-content .article-heading-3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: var(--text-dark);
}

.article-content h4,
.article-content .article-heading-4 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--text-dark);
}

.article-content h5,
.article-content .article-heading-5 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    color: var(--text-dark);
}

.article-content h6,
.article-content .article-heading-6 {
    font-size: 1em;
    font-weight: 600;
    margin-top: 0.6em;
    margin-bottom: 0.3em;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1em;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1em;
    padding-right: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding-right: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 1em 1.5em;
    border-radius: 4px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: var(--shadow-md);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    box-shadow: var(--shadow-sm);
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border-color);
    padding: 0.8em;
    text-align: right;
}

.article-content table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-content table tr:nth-child(even) {
    background: var(--bg-light);
}

/* Alert Modern */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 15px 20px;
}

