/* استایل اصلی سایت چک کنیم - تم آبی و سفید */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --dark-blue: #004499;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-orange: #ffc107;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.main-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    text-decoration: none;
    color: var(--white);
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 0;
    display: block;
}

.main-nav a:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    color: var(--dark-gray);
    padding: 10px 20px;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--light-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* محتوای اصلی */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* بنر اصلی */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 10px;
}

.hero-section h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* کارت‌ها */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
}

.card ul {
    list-style: none;
    padding-right: 20px;
}

.card ul li {
    padding: 8px 0;
    position: relative;
}

.card ul li:before {
    content: "✓";
    position: absolute;
    right: -20px;
    color: var(--success-green);
    font-weight: bold;
}

.card ul li.negative:before {
    content: "✗";
    color: var(--danger-red);
}

/* جدول */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background: var(--light-blue);
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-red);
    color: var(--white);
}

.btn-warning {
    background: var(--warning-orange);
    color: var(--dark-gray);
}

/* رتبه‌بندی */
.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.stars {
    color: #ffc107;
    font-size: 20px;
}

.rating-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* نظرات */
.reviews-section {
    margin: 40px 0;
}

.review-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-blue);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: var(--primary-blue);
}

.review-date {
    color: var(--text-gray);
    font-size: 14px;
}

/* فرم */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* فوتر */
.main-footer {
    background: var(--dark-gray);
    color: var(--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: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* بج‌ها */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-green);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-red);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-orange);
    color: var(--dark-gray);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* لینک‌های داخلی */
.internal-links {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.internal-links h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.internal-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.internal-links a {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 8px 15px;
    background: var(--white);
    border-radius: 5px;
    transition: all 0.3s;
}

.internal-links a:hover {
    background: var(--primary-blue);
    color: var(--white);
}
