/* فونت Vazirmatn */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

/* متغیرهای رنگ */
:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #ff8fab; /* صورتی کمرنگ */
    --accent-hover: #ff6b8b; /* صورتی پررنگ‌تر */
    --border: #30363d;
    --success: #00ff88;
    --radius: 8px;
}

/* تم لایت - این رو اضافه کن */
body.light-mode {
    --bg-dark: #f6f8fa;
    --bg-card: #ffffff;
    --text-main: #24292e;
    --text-muted: #586069;
    --accent: #ff6b8b;
    --accent-hover: #ff4757;
    --border: #e1e4e8;
    --success: #00a65a;
    font-weight: 500; 
}

/* پایه */
body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.html-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 143, 171, 0.15); /* صورتی خیلی کمرنگ */
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
}

.header-title h1 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-home:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* لیست تگ‌ها */
.tags-list-page {
    padding: 30px 0 50px;
}

.tags-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* هر ردیف تگ */
.tag-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.tag-item:hover {
    background: rgba(255, 143, 171, 0.05); /* هایلایت صورتی خیلی کم */
}

.tag-item:last-child {
    border-bottom: none;
}

.tag-number {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.tag-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tag-code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--text-main);
    direction: ltr;
    flex: 1;
}

.tag-copy {
    background: rgba(255, 143, 171, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Vazirmatn';
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 80px;
}

.tag-copy:hover {
    background: var(--accent);
    color: white;
}

.tag-copy.copied {
    background: var(--success);
    border-color: var(--success);
    color: #000;
}

/* فوتر */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .tag-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .tag-copy {
        width: 100%;
    }
}
/* آیکن مشترک برای همه زبان‌ها */
.lang-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 143, 171, 0.15); /* پس‌زمینه صورتی خیلی کم */
    border: 2px solid var(--accent); /* حاشیه صورتی کمرنگ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent); /* رنگ آیکن صورتی */
}
/* استایل‌های اسکرول‌بار برای صفحات داخلی */

/* اسکرول‌بار اصلی صفحه */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 143, 171, 0.6); /* صورتی کم‌رنگ */
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 143, 171, 0.8); /* صورتی پررنگ‌تر هنگام هاور */
}

/* برای Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 143, 171, 0.6) var(--bg-dark);
}

/* اسکرول‌بار مخصوص dropdown */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 143, 171, 0.5);
    border-radius: 4px;
}

/* اسکرول‌بار مخصوص کانتینر لیست */
.tags-list-container::-webkit-scrollbar {
    width: 8px;
}

.tags-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 143, 171, 0.4);
}
/* استایل‌های کمکی بدون تأثیر بر ظاهر اصلی */
        .breadcrumb {
            background: var(--bg-tertiary);
            padding: 10px 0;
            font-size: 0.9rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .breadcrumb a {
            color: var(--text-secondary);
            text-decoration: none;
        }
        
        .breadcrumb .current {
            color: var(--accent-color);
            font-weight: bold;
        }
        
        .separator {
            margin: 0 8px;
            color: var(--text-tertiary);
        }
        
        .intro-content {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
            border-right: 4px solid var(--accent-color);
        }
        
        .intro-content ul {
            padding-right: 20px;
            margin: 15px 0;
        }
        
        .intro-content li {
            margin-bottom: 8px;
            color: var(--text-secondary);
        }
        
        .section-heading {
            color: var(--accent-color);
            margin: 30px 0 20px;
            font-size: 1.5rem;
        }
        
        .related-grid {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }
        
        .related-card {
            background: var(--bg-tertiary);
            padding: 15px 20px;
            border-radius: var(--border-radius);
            text-decoration: none;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
            transition: var(--transition);
        }
        
        .related-card:hover {
            background: rgba(255, 107, 139, 0.1);
            transform: translateY(-3px);
        }
        
        .related-card i {
            font-size: 1.5rem;
            color: var(--accent-color);
        }
        
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        .footer-links {
            margin-top: 15px;
        }
        
        .footer-links a {
            color: var(--text-secondary);
            margin-left: 20px;
            text-decoration: none;
        }
        
        .footer-links a:hover {
            color: var(--accent-color);
        }
        
        .tagline {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin-top: 10px;
        }


