/* طراحی مینیمال با منوی کناری */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --sidebar-width: 280px;
    --header-height: 60px;
}

/* Font Faces */
@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/anjoman.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/anjoman.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anjoman-Bold';
    src: url('../fonts/anjoman-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Anjoman', 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-right: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-right-color: var(--primary-color);
}

.nav-item.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
}

/* Content */
.content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Search */
.search-container {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 20px;
}


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

.footer p {
    margin: 0;
    font-size: 14px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Brand Cards */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.brand-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.brand-card:hover .btn-primary {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.brand-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

.brand-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.brand-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.btn-info {
    background: var(--info-color);
    color: white;
    border-color: var(--info-color);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

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

.form-input:hover,
.form-textarea:hover {
    border-color: var(--secondary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Typography */
h1 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

h2 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

h3 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

h4 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

h5 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

h6 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: justify;
    font-size: 16px;
    line-height: 55px;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--border-radius); }

/* Comments */
.comment-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-left: 15px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
    margin-bottom: 5px;
}

.tag.positive {
    background: #dcfce7;
    color: #166534;
}

.tag.negative {
    background: #fee2e2;
    color: #991b1b;
}

/* Brand Description Styling */
.brand-description {
    line-height: 1.8;
    font-size: 16px;
}

.brand-description h1,
.brand-description h2,
.brand-description h3,
.brand-description h4,
.brand-description h5,
.brand-description h6 {
    font-family: 'Anjoman-Bold', 'Anjoman', sans-serif;
    font-weight: bold;
    margin: 20px 0 15px 0;
    color: var(--text-primary);
}

.brand-description h1 { font-size: 28px; }
.brand-description h2 { font-size: 24px; }
.brand-description h3 { font-size: 20px; }
.brand-description h4 { font-size: 18px; }
.brand-description h5 { font-size: 16px; }
.brand-description h6 { font-size: 14px; }

.brand-description p {
    margin: 15px 0;
    text-align: justify;
    font-size: 16px;
    line-height: 55px;
}

.brand-description ul,
.brand-description ol {
    margin: 15px 0;
    padding-right: 25px;
    line-height: 1.8;
}

.brand-description ul {
    list-style-type: disc;
}

.brand-description ol {
    list-style-type: decimal;
}

.brand-description li {
    margin: 8px 0;
}

.brand-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.brand-description th,
.brand-description td {
    padding: 16px 20px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.brand-description th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--text-primary);
    font-family: 'Anjoman', sans-serif;
}

.brand-description tr:nth-child(even) {
    background-color: #f9f9f9;
}

.brand-description tr:nth-child(odd) {
    background-color: white;
}

.brand-description tr:hover {
    background-color: #f0f0f0;
}

.brand-description blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-right: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.brand-description code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.brand-description pre {
    background: #f1f3f4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.brand-description pre code {
    background: none;
    padding: 0;
}

.brand-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.brand-description a {
    color: var(--primary-color);
    text-decoration: none;
}

.brand-description a:hover {
    text-decoration: underline;
}

.brand-description strong,
.brand-description b {
    font-weight: bold;
    font-family: 'Anjoman', sans-serif;
}

.brand-description em,
.brand-description i {
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .brand-description table {
        font-size: 14px;
    }
    
    .brand-description th,
    .brand-description td {
        padding: 8px 10px;
    }
    
    .brand-description h1 { font-size: 24px; }
    .brand-description h2 { font-size: 20px; }
    .brand-description h3 { font-size: 18px; }
    .brand-description h4 { font-size: 16px; }
    .brand-description h5 { font-size: 14px; }
    .brand-description h6 { font-size: 12px; }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }
    
    .header {
        padding: 0 15px;
    }
    
    .brand-card {
        padding: 15px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.open {
    display: block;
}
.footer {
    display: none;
}