        :root {
            --primary-color: #6366f1;
            --primary-dark: #4f46e5;
            --secondary-color: #f59e0b;
            --accent-color: #ec4899;
            --text-color: #1f2937;
            --text-light: #6b7280;
            --bg-color: #ffffff;
            --bg-light: #f9fafb;
            --bg-dark: #111827;
            --border-color: #e5e7eb;
            --border-radius: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
        }

@font-face {
  font-family: 'Fontmagicfile';
  src:
    url('https://magicfile.ir/font/magicfile.woff2') format('woff2'),
    url('https://magicfile.ir/font/magicfile.woff') format('woff');
  font-display: swap;
}

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Fontmagicfile', sans-serif;
            margin: 0;
            direction: rtl;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f1f5f9;
        }

        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
        }

        a:hover {
            color: var(--primary-dark);
        }

        /* Header Styles */
        .main-header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            padding: 3rem 1rem;
            text-align: center;
            margin-bottom: 2rem;
            border-radius: 0 0 var(--border-radius) var(--border-radius);
            box-shadow: var(--shadow);
        }

        .entry-title {
            font-size: 2.5rem;
            margin: 0;
            font-weight: 700;
        }

        .entry-title a {
            color: white;
        }

        .entry-title a:hover {
            color: rgba(255, 255, 255, 0.9);
        }


        .post-container {
            background: var(--bg-color);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 2rem;
            margin-bottom: 2rem;
            overflow: hidden;
            margin: 20px;
        }

        .post-image {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: var(--border-radius);
            margin: 0 auto 2rem;
            display: block;
            box-shadow: var(--shadow);
        }

        .post-content {
            line-height: 1.8;
            font-size: 1.1rem;
        }

        .post-content h2, 
        .post-content h3, 
        .post-content h4 {
            color: var(--primary-dark);
            margin-top: 2rem;
            margin-bottom: 1rem;
        }

        .post-content p {
            margin-bottom: 1.5rem;
        }

        .post-content img {
            max-width: 100%;
            height: auto;
            border-radius: var(--border-radius);
            margin: 1rem 0;
        }

        /* Tags Section */
        .tags-section {
            background: var(--bg-color);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
            margin: 20px;
        }

        .tags-title {
            font-size: 1.25rem;
            margin-top: 0;
            margin-bottom: 1rem;
            color: var(--text-color);
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.5rem;
        }

        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .tag {
            background: var(--bg-light);
            color: var(--primary-color);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.9rem;
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .tag:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* Code Styling */
        code {
            background-color: #f5f5f5;
            color: #c7254e;
            padding: 0.2em 0.4em;
            margin: 0;
            font-size: 90%;
            font-family: Consolas, Monaco, 'Courier New', monospace;
            border-radius: 4px;
            border: 1px solid #e0e0e0;
            white-space: pre-wrap;
            word-break: break-word;
            direction: ltr;
            text-align: left;
            display: inline-block;
        }

        pre code {
            display: block;
            padding: 1rem;
            overflow-x: auto;
            margin: 1rem 0;
        }

        /* Table Styling */
        table {
            border-collapse: collapse;
            border-spacing: 0;
            width: 100%;
            border: 1px solid var(--border-color);
            margin: 1rem 0;
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        th, td {
            padding: 0.75rem;
            text-align: right;
            border-bottom: 1px solid var(--border-color);
        }

        th {
            background-color: var(--bg-light);
            font-weight: 600;
        }

        tr:last-child td {
            border-bottom: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .entry-title {
                font-size: 1.75rem;
            }
            
            .post-container {
                padding: 1.5rem;
            }
            
            .main-header {
                padding: 2rem 1rem;
            }
        }

        @media (max-width: 480px) {
            .entry-title {
                font-size: 1.5rem;
            }
            
            .post-container {
                padding: 1rem;
            }
        }

        /* Utility Classes */
        .text-center {
            text-align: center;
        }

        .mb-2 {
            margin-bottom: 2rem;
        }

        .mt-2 {
            margin-top: 2rem;
        }
table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: block; overflow-x: auto; white-space: nowrap; }
table table { width: 100%; min-width: 600px; }
table th, table td, table th, table td { padding: 12px 15px; text-align: right; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
table th, table th { background-color: var(--primary); color: white; font-weight: 600; }
table tr:nth-child(even), table tr:nth-child(even) { background-color: var(--gray-100); }
table tr:hover, table tr:hover { background-color: var(--gray-200); }