/* MeGa RolePlay - Main Stylesheet */
/* تم کلاسیک پریمیوم: نوی تیره + طلایی + کرم */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a227;
    --primary-dark: #a88420;
    --primary-light: #e0b83d;
    --secondary-color: #c9a227;
    --success-color: #0d9488;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-bg: #0f1419;
    --dark-bg-light: #1a2332;
    --text-dark: #1a1d24;
    --text-light: #5a5a5a;
    --border-color: #e8e4de;
    --bg-light: #f8f6f2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-brand i {
    color: var(--primary-color);
    font-size: 1.3em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0, 17, 34, 0.8), rgba(0, 51, 102, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23001222" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 17, 34, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 1.4s;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2em;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 114, 187, 0.3);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-secondary {
    background: var(--text-light);
}

.btn-success {
    background: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-warning {
    background: var(--warning-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-small {
    padding: 6px 15px;
    font-size: 14px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Articles Section */
.latest-articles {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    margin-bottom: 10px;
}

.article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--text-light);
}

.article-meta i {
    margin-left: 5px;
}

/* Blog Page */
.blog-header,
.shop-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-header h1,
.shop-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.blog-content,
.shop-content {
    padding: 60px 0;
}

/* Article Page */
.article-page {
    padding: 40px 0;
}

.article-full {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-header-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.article-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-body {
    padding: 30px;
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.related-articles {
    margin-top: 40px;
}

.related-articles h2 {
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Shop */
.shop-filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
}

.product-content {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.product-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-price span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.product-stock {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    margin-bottom: 30px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-right: 3px solid var(--primary-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.comment-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.comment-header a:hover {
    text-decoration: underline;
}

.comment-header span {
    color: var(--text-light);
}

.comment-body {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.comment-replies {
    margin-top: 15px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 2px solid var(--border-color);
}

.reply-item {
    padding: 15px;
    background: white;
    border-radius: 5px;
    margin-bottom: 10px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.reply-header a {
    color: var(--primary-color);
    text-decoration: none;
}

.reply-header span {
    color: var(--text-light);
}

.reply-body {
    color: var(--text-dark);
    line-height: 1.6;
}

.reply-form-inline {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.reply-form-inline textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
}

.comment-form-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comment-form-section h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 15px;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 20px;
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.comments-disabled {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 40px;
    color: var(--text-light);
}

/* How to Connect Section */
.how-to-connect {
    padding: 80px 0;
    background: var(--bg-light);
}

.connect-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.code-box {
    background: var(--dark-bg);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
}

.code-box code {
    flex: 1;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.server-info {
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.info-card h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: var(--primary-color);
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-card ul li:last-child {
    border-bottom: none;
}

.status-online {
    color: var(--success-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid,
    .articles-grid,
    .products-grid,
    .connect-steps {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .code-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        text-align: center;
    }
}
