﻿:root {
      --primary-purple: rgb(147, 51, 234);
      --primary-blue: #1D7BFF;
      --bg-dark: #0B192C;
      --bg-light: #F8FAFC;
      --text-dark: #0F172A;
      --text-light: #64748B;
      --border-color: rgba(226, 232, 240, 0.8);
      --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, sans-serif;
      color: var(--text-dark);
      background-color: var(--bg-light);
      line-height: 1.8;
    }
    a { text-decoration: none; color: inherit; transition: all 0.3s; }

    
    header {
      position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
      background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-color);
    }
    .nav-container {
      max-width: 1200px; margin: 0 auto; padding: 15px 20px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .logo { display: inline-flex; align-items: center; gap: 12px; }
    .logo img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; }
    .logo span { font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--text-dark), var(--primary-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .nav-menu { display: flex; align-items: center; gap: 30px; }
    .nav-menu a { font-size: 15px; font-weight: 500; }
    .nav-menu a:hover { color: var(--primary-purple); }
    .nav-btn { background: linear-gradient(135deg, var(--primary-purple), #7e22ce); color: white !important; padding: 8px 20px; border-radius: 50px; font-weight: 600 !important; }
    .menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

    
    .container { max-width: 1200px; margin: 120px auto 60px; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
    .breadcrumbs { grid-column: 1 / -1; font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
    .breadcrumbs a:hover { color: var(--primary-purple); }

    
    article.post-main { background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; box-shadow: var(--card-shadow); }
    .post-header { border-bottom: 1px solid var(--border-color); padding-bottom: 24px; margin-bottom: 30px; }
    .post-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
    .post-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
    
    .post-body { font-size: 16px; color: #334155; }
    .post-body p { margin-bottom: 24px; }
    .post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }

    
    .post-tags { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 20px; display: flex; gap: 10px; }
    .post-tags a { font-size: 12px; background: #f1f5f9; padding: 6px 12px; border-radius: 6px; }
    .post-tags a:hover { background: var(--primary-purple); color: white; }

    
    .post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 24px; }
    .post-nav-item { width: 50%; }
    .post-nav-item span { font-size: 12px; color: var(--text-light); display: block; }
    .post-nav-item h5 { font-size: 15px; font-weight: 700; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    
    .related-section { margin-top: 50px; }
    .related-section h3 { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
    .related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .related-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; display: flex; gap: 15px; }
    .related-img { width: 100px; height: 80px; border-radius: 6px; background-size: cover; flex-shrink: 0; background-color: #cbd5e1; }
    .related-info { display: flex; flex-direction: column; justify-content: space-between; }
    .related-info h4 { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .widget { background: white; border-radius: 12px; padding: 24px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
    .widget-title { font-size: 16px; font-weight: 700; border-left: 4px solid var(--primary-purple); padding-left: 12px; margin-bottom: 20px; }
    
    .hot-posts { display: flex; flex-direction: column; gap: 15px; }
    .hot-item { display: flex; gap: 12px; align-items: center; }
    .hot-item-img { width: 60px; height: 60px; border-radius: 6px; background-size: cover; flex-shrink: 0; background-color: #cbd5e1; }
    .hot-item-info h5 { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hot-item-info span { font-size: 11px; color: var(--text-light); }

    
    footer { background: #0f172a; color: #94a3b8; padding: 80px 20px 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
    .footer-brand p { margin: 20px 0; font-size: 15px; }
    .footer-links h4 { color: white; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
    .footer-links ul { list-style: none; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a:hover { color: white; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; font-size: 14px; flex-wrap: wrap; gap: 20px; }

    
    .mobile-drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100%; background: white; z-index: 1001; box-shadow: 10px 0 30px rgba(0,0,0,0.1); transition: left 0.3s ease; display: flex; flex-direction: column; padding: 30px 20px; }
    .mobile-drawer.active { left: 0; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; }
    .drawer-menu { display: flex; flex-direction: column; gap: 20px; }
    .drawer-menu a { font-size: 18px; font-weight: 600; }
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; display: none; }
    .drawer-overlay.active { display: block; }

    @media (max-width: 992px) {
      .container { grid-template-columns: 1fr; }
      .nav-menu { display: none; }
      .menu-toggle { display: block; }
      .related-grid { grid-template-columns: 1fr; }
    }