/* Public hardening styles extracted from inline <style> blocks. */

/* views/partials/layout.ejs */
/* Icon base styles */
        .icon {
            width: 24px;
            height: 24px;
            display: inline-block;
            vertical-align: middle;
            fill: currentColor;
        }
        
        /* Button icon */
        .btn-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-icon:hover {
            background: rgba(0,0,0,0.05);
        }
        .dark .btn-icon:hover {
            background: rgba(255,255,255,0.1);
        }
        
        /* Nav link */
        .nav-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            border-radius: 8px;
            text-decoration: none;
            transition: all 0.2s;
        }
        .nav-link:hover {
            color: #2563eb;
        }
        
        /* Footer link */
        .footer-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            transition: color 0.2s;
        }
        .footer-link:hover {
            color: #2563eb;
        }
        
        /* Activation button */
        .btn-activation-magic {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
            color: white;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        }
        .btn-activation-magic:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        }
        
        /* Color backgrounds for social icons */
        .hover\\:bg-telegram:hover { background: #229ED9 !important; }
        .hover\\:bg-instagram:hover { background: #E4405F !important; }
        .hover\\:bg-whatsapp:hover { background: #25D366 !important; }
        
        /* Font display */
        .font-display {
            font-family: var(--app-font-family, "IRANSansX");
        }
        
        /* Ensure header is fixed at top */
        header.top-4 {
            position: fixed;
            top: 1rem;
            left: 0;
            right: 0;
        }
        
        /* Add padding to body for fixed header */
        body {
            padding-top: 6rem;
        }
/* scoped reset — فقط محتوای بلاگ، نه navbar/footer سایت اصلی */
.blog-post-content *, .blog-card *, .global-search-container *, .page-content * { box-sizing: border-box; }
        
        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --text: #1f2937;
            --text-muted: #6b7280;
            --bg: #f9fafb;
            --card-bg: #ffffff;
            --border: #e5e7eb;
        }
        
        .dark {
            --text: #f3f4f6;
            --text-muted: #9ca3af;
            --bg: #0f172a;
            --card-bg: #1e293b;
            --border: #334155;
        }
        
        body {
            font-family: var(--app-font-family, "IRANSansX");
            line-height: 1.8;
            color: var(--text);
            background: var(--bg);
            direction: rtl;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        a { color: var(--primary); text-decoration: none; }
        a:hover { color: var(--primary-dark); }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
        
        main { flex: 1; padding: 2rem 0; }
        
        .card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        .card-image { aspect-ratio: 4/3; overflow: hidden; }
        .card-image img { width: 100%; height: 100%; object-fit: cover; }
        .card-body { padding: 1.25rem; }
        .card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
        .card-title a { color: var(--text); }
        .card-excerpt { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
        .card-meta { color: var(--text-muted); font-size: 0.8rem; }
        .card-category {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--primary);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
        }
        
        .grid { display: grid; gap: 1.5rem; }
        .grid-3 { grid-template-columns: repeat(3, 1fr); }
        .grid-4 { grid-template-columns: repeat(4, 1fr); }
        
        @media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 576px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
        
        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        .btn-primary { background: var(--primary); color: white; }
        .btn-primary:hover { background: var(--primary-dark); color: white; }
        
        .pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
        .pagination a, .pagination span {
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background: var(--card-bg);
        }
        .pagination .current { background: var(--primary); color: white; }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--border);
        }
        
        .breadcrumb {
            padding: 1rem 0;
            color: var(--text-muted);
            font-size: 0.875rem;
        }
        .breadcrumb a { color: var(--text-muted); }
        .breadcrumb span { margin: 0 0.5rem; }
        
        /* Global Search - Fully Responsive */
        .global-search-container {
            background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
            padding: 1.5rem 1rem;
            margin-bottom: 2rem;
        }
        .global-search-box {
            max-width: 600px;
            margin: 0 auto;
            position: relative;
        }
        #global-search-form {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 50px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            overflow: hidden;
        }
        .global-search-input {
            flex: 1;
            min-width: 0;
            padding: 0.875rem 1rem;
            border: none;
            font-size: 0.95rem;
            font-family: inherit;
            outline: none;
            background: transparent;
            color: #1f2937;
            text-align: right;
            direction: rtl;
        }
        .global-search-input::placeholder {
            color: #9ca3af;
        }
        .global-search-btn {
            flex-shrink: 0;
            background: var(--primary);
            border: none;
            padding: 0.875rem 1.25rem;
            color: white;
            cursor: pointer;
            transition: background 0.2s;
            font-family: inherit;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        .global-search-btn:hover { background: var(--primary-dark); }
        
        .search-results-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            margin-top: 0.5rem;
            max-height: 400px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
        }
        .search-results-dropdown.active { display: block; }
        .search-result-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #f3f4f6;
            color: #1f2937;
            text-decoration: none;
            transition: background 0.2s;
        }
        .search-result-item:hover { background: #f8fafc; }
        .search-result-item:last-child { border: none; }
        .search-result-thumb {
            width: 60px;
            height: 45px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .search-result-info { flex: 1; }
        .search-result-title { font-weight: 600; margin-bottom: 0.25rem; }
        .search-result-meta { font-size: 0.75rem; color: var(--text-muted); }
        .search-no-results, .search-loading {
            padding: 2rem;
            text-align: center;
            color: var(--text-muted);
        }
        
        /* Image Grid - گالری تصاویر */
        .image-grid {
            display: grid;
            gap: 0.5rem;
            margin: 1.5rem 0;
            clear: both;
        }
        .image-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
        .image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
        .image-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
        .image-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .image-grid img:hover { transform: scale(1.02); }
        .image-grid.portrait img { aspect-ratio: 3/4; }
        .image-grid.landscape img { aspect-ratio: 16/9; }
        .image-grid.square img { aspect-ratio: 1/1; }
        
        /* ===== Responsive Styles ===== */
        @media (max-width: 992px) {
            .container { padding: 0 1rem; }
        }
        
        @media (max-width: 768px) {
            main { padding: 1rem 0; }
            .card-body { padding: 1rem; }
            .card-title { font-size: 1rem; }
            .section-title { font-size: 1.25rem; }
            
            /* Image Grid - Tablet */
            .image-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
            .image-grid { gap: 0.375rem; }
        }
        
        @media (max-width: 576px) {
            body { font-size: 0.9rem; }
            .container { padding: 0 0.75rem; }
            main { padding: 0.75rem 0; }
            
            /* Cards */
            .card { border-radius: 8px; }
            .card-body { padding: 0.875rem; }
            .card-title { font-size: 0.95rem; }
            .card-excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; }
            .card-meta { font-size: 0.7rem; }
            
            /* Image Grid - Mobile */
            .image-grid.cols-2 { grid-template-columns: 1fr; }
            .image-grid.cols-3 { grid-template-columns: 1fr; }
            .image-grid.cols-4 { grid-template-columns: 1fr; }
            .image-grid { gap: 0.5rem; margin: 1rem 0; }
            .image-grid img { border-radius: 6px; }
            
            /* Search - Mobile */
            .global-search-container { padding: 1rem 0.5rem; }
            .global-search-box { max-width: 100%; }
            .global-search-input { 
                padding: 0.75rem 0.75rem;
                font-size: 0.85rem;
            }
            .global-search-btn { 
                padding: 0.75rem 0.75rem;
                font-size: 0.8rem;
            }
            
            /* Typography */
            h1 { font-size: 1.5rem; }
            h2 { font-size: 1.25rem; }
            h3 { font-size: 1.1rem; }
        }
        
        @media (max-width: 400px) {
            .container { padding: 0 0.5rem; }
            .card-body { padding: 0.75rem; }
            .card-title { font-size: 0.9rem; }
            
            /* Extra small: stack vertically */
            .global-search-container { padding: 0.75rem 0.5rem; }
            #global-search-form {
                flex-direction: column;
                border-radius: 16px;
                padding: 0.5rem;
                gap: 0.5rem;
            }
            .global-search-input { 
                width: 100%;
                padding: 0.625rem 0.75rem;
                font-size: 0.85rem;
                text-align: center;
                border-radius: 12px;
                background: #f9fafb;
            }
            .global-search-input::placeholder {
                text-align: center;
            }
            .global-search-btn { 
                width: 100%;
                padding: 0.625rem 1rem;
                font-size: 0.85rem;
                border-radius: 12px;
            }
        }

/* views/partials/site-navbar.ejs */
/* Enhanced Glassmorphism - Inline to prevent Vite purging */
  .navbar-glass {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.65) 100%
    ) !important;
    backdrop-filter: blur(30px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.08),
      0 2px 8px rgba(0, 0, 0, 0.04),
      inset 0 1px 1px rgba(255, 255, 255, 0.9),
      inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
  }
  
  .dark .navbar-glass {
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.7) 0%,
      rgba(15, 23, 42, 0.6) 100%
    ) !important;
    backdrop-filter: blur(30px) saturate(180%) brightness(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.1),
      inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-menu-glass {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.92) 100%
    ) !important;
    backdrop-filter: blur(35px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(35px) saturate(200%) brightness(1.05);
    box-shadow: 
      0 0 80px rgba(0, 0, 0, 0.1),
      inset 0 1px 1px rgba(255, 255, 255, 1);
  }
  
  .dark .mobile-menu-glass {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.95) 0%,
      rgba(15, 23, 42, 0.92) 100%
    ) !important;
    backdrop-filter: blur(35px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(35px) saturate(200%) brightness(1.1);
    box-shadow: 
      0 0 80px rgba(0, 0, 0, 0.4),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  
  /* Light mode: Force black text for navbar links */
  .navbar-link-light {
    color: #000000 !important;
    transition: color 0.3s ease;
  }
  .dark .navbar-link-light {
    color: #d1d5db !important;
  }
  .navbar-link-light:hover {
    color: #2563eb !important;
  }

  /* Desktop Navigation Hover Effects - فقط برای دسکتاپ */
  @media (min-width: 1024px) {
    /* آیکون‌های بزرگتر در حالت عادی */
    .desktop-nav .icon {
      width: 32px !important;
      height: 32px !important;
      transition: all 0.4s ease;
    }
    
    /* آیکون‌ها در hover کوچیک‌تر می‌شوند */
    .navbar-container:hover .desktop-nav .icon {
      width: 20px !important;
      height: 20px !important;
    }
    
    /* متن‌های لینک در حالت عادی مخفی */
    .nav-link-text {
      max-width: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-width 0.4s ease, opacity 0.4s ease, margin-right 0.4s ease;
      white-space: nowrap;
      display: inline-block;
      font-size: 13px;
    }
    
    @media (min-width: 1280px) {
      .nav-link-text {
        font-size: 14px;
      }
    }
    
    /* همه متن‌ها با hover روی navbar نمایان می‌شوند */
    .navbar-container:hover .nav-link-text {
      max-width: 200px;
      opacity: 1;
      margin-right: 0.5rem;
    }
    
    /* Navbar Container - جمع شدن navbar */
    .navbar-container {
      transition: padding 0.4s ease;
    }
    
    /* حالت جمع شده navbar - زمانی که hover نیست */
    .navbar-container:not(:hover) {
      padding-left: 2rem !important;
      padding-right: 2rem !important;
    }
    
    /* Navigation با فاصله بیشتر */
    .desktop-nav {
      gap: 2rem !important;
      transition: gap 0.4s ease;
    }
    
    /* Navigation در hover gap کمتری داره */
    .navbar-container:hover .desktop-nav {
      gap: 1rem !important;
    }
  }

/* views/public/post.ejs */
/* Dark mode for title and meta */
            .dark .post-title { color: #f9fafb; }
            .dark .post-meta { color: #9ca3af; }
            
            @media (max-width: 768px) {
                .post-title { font-size: 1.75rem !important; }
                .post-meta { gap: 0.75rem !important; font-size: 0.8rem !important; }
            }
            @media (max-width: 576px) {
                .post-title { font-size: 1.5rem !important; }
                .post-meta { gap: 0.5rem !important; font-size: 0.75rem !important; }
                .post-meta span { display: inline-flex; }
            }
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.75rem; border-bottom: 2px solid #e5e7eb; padding-bottom: 0.5rem; }
            .post-content { word-break: break-word; overflow-wrap: break-word; max-width: 100%; overflow-x: hidden; }
            .post-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
            .post-content p { margin-bottom: 1.5rem; color: #374151; }
            .post-content ul, .post-content ol { margin: 1.5rem 0; padding-right: 2rem; }
            .post-content li { margin-bottom: 0.5rem; color: #374151; }
            .post-content blockquote { margin: 2rem 0; padding: 1.5rem 2rem; background: #f9fafb; border-right: 4px solid #2563eb; border-radius: 0 8px 8px 0; color: #374151; }
            .post-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem auto; display: block; }
            .post-content a { color: #2563eb; text-decoration: underline; }
            /* Custom buttons - preserve inline styles */
            .post-content a[style*="display: inline-block"],
            .post-content a[style*="background:"] { text-decoration: none !important; color: inherit !important; }
            .post-content a[style*="display: inline-block"]:hover { opacity: 0.9; transform: translateY(-1px); }
            .post-content pre { background: #1f2937; color: #f9fafb; padding: 1.5rem; border-radius: 8px; overflow-x: auto; direction: ltr; text-align: left; }
            .post-content code { background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.875em; color: #1f2937; }
            .post-content pre code { background: none; color: inherit; }
            
            /* Dark Mode */
            .dark .post-content h2 { border-color: #374151; color: #f9fafb; }
            .dark .post-content h3 { color: #f9fafb; }
            .dark .post-content p { color: #d1d5db; }
            .dark .post-content li { color: #d1d5db; }
            .dark .post-content blockquote { background: #1f2937; color: #d1d5db; border-color: #3b82f6; }
            .dark .post-content code { background: #374151; color: #f9fafb; }
            .dark .post-content a { color: #60a5fa; }
            
            /* Responsive */
            @media (max-width: 768px) {
                .post-content h2 { font-size: 1.4rem; margin-top: 2rem; }
                .post-content h3 { font-size: 1.2rem; }
                .post-content { font-size: 1rem !important; line-height: 1.8 !important; }
                .post-content blockquote { padding: 1rem 1.25rem; margin: 1.5rem 0; }
                .post-content ul, .post-content ol { padding-right: 1.5rem; }
            }
            @media (max-width: 576px) {
                .post-content h2 { font-size: 1.25rem; }
                .post-content h3 { font-size: 1.1rem; }
                .post-content { font-size: 0.95rem !important; }
                .post-content pre { padding: 1rem; font-size: 0.8rem; }
            }
            
            
            /* Share & Author styling */
            .share-label { color: #6b7280; }
            .dark .share-label { color: #9ca3af; }
            .author-box { background: #f9fafb; border-radius: 12px; }
            .dark .author-box { background: #1e293b; }
            .author-bio { color: #6b7280; }
            .dark .author-bio { color: #9ca3af; }
            .author-name { color: #1f2937; }
            .dark .author-name { color: #f9fafb; }
            
            /* Border colors */
            .border-divider { border-color: #e5e7eb; }
            .dark .border-divider { border-color: #374151; }
            
            /* Section titles */
            .section-title { color: #1f2937; }
            .dark .section-title { color: #f9fafb; }
/* Comment Form Styles */
            .form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #374151; }
            .dark .form-label { color: #e5e7eb; }
            .form-input { width: 100%; padding: 0.875rem 1rem; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1rem; transition: all 0.2s; background: white; color: #1f2937; }
            .dark .form-input { background: #0f172a; border-color: #475569; color: #f9fafb; }
            .dark .form-input::placeholder { color: #64748b; }
            .form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
            .form-textarea { resize: vertical; line-height: 1.6; }
            .form-hint { color: #64748b; font-size: 0.8rem; margin: 0; }
            .dark .form-hint { color: #9ca3af; }
            .btn-submit { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; padding: 0.875rem 2rem; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 1rem; transition: all 0.2s; }
            .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
            
            /* Comment Box Styles */
            .comment-form-wrapper { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #e2e8f0; border-radius: 16px; padding: 2rem; }
            .dark .comment-form-wrapper { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-color: #475569; }
            .dark .comment-form-wrapper h3 { color: #f9fafb; }
            .comments-toggle-btn { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; user-select: none; color: #1f2937; }
            .dark .comments-toggle-btn { background: #1e293b; border-color: #475569; color: #f9fafb; }
            .comments-toggle-btn:hover { background: #f8fafc; border-color: #2563eb; }
            .dark .comments-toggle-btn:hover { background: #334155; }
            
            /* Comment Card Styles */
            .comment-card { padding: 1.25rem; background: white; border: 1px solid #e2e8f0; border-radius: 12px; transition: all 0.2s; }
            .dark .comment-card { background: #1e293b; border-color: #475569; }
            .comment-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #2563eb, #7c3aed); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; flex-shrink: 0; }
            .comment-author { color: #1f2937; }
            .dark .comment-author { color: #f9fafb; }
            .comment-date { color: #9ca3af; font-size: 0.75rem; }
            .comment-content { color: #4b5563; margin: 0; line-height: 1.7; padding-right: 3.25rem; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
            .comment-content.truncated { max-height: 100px; overflow: hidden; position: relative; }
            .comment-content.truncated::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30px; background: linear-gradient(transparent, white); }
            .dark .comment-content.truncated::after { background: linear-gradient(transparent, #1e293b); }
            .dark .comment-content { color: #d1d5db; }
            .no-comments { color: #64748b; text-align: center; padding: 2rem; }
            .dark .no-comments { color: #9ca3af; }
            .show-more-btn { color: #2563eb; cursor: pointer; font-size: 0.85rem; margin-top: 0.5rem; display: inline-block; }
            .show-more-btn:hover { text-decoration: underline; }
            .load-more-comments { background: #f1f5f9; color: #2563eb; border: 1px solid #e2e8f0; padding: 0.75rem 1.5rem; border-radius: 10px; cursor: pointer; font-weight: 600; margin-top: 1rem; display: block; width: 100%; text-align: center; transition: all 0.2s; }
            .dark .load-more-comments { background: #334155; border-color: #475569; }
            .load-more-comments:hover { background: #e2e8f0; }
            .dark .load-more-comments:hover { background: #475569; }
            
            @keyframes slideDown {
                from { opacity: 0; transform: translateY(-10px); }
                to { opacity: 1; transform: translateY(0); }
            }
            #comments-toggle:hover {
                background: #f8fafc;
                border-color: #2563eb;
            }
            .comment-form-wrapper input:focus,
            .comment-form-wrapper textarea:focus {
                outline: none;
                border-color: #2563eb;
                box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            }
            .comment-form-wrapper button:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
            }
            @media (max-width: 576px) {
                .comment-form-wrapper { padding: 1.25rem !important; border-radius: 12px !important; }
                .comment-inputs { grid-template-columns: 1fr !important; }
            }


/* Public runtime hardening helpers */
.gtm-noscript-frame { display: none; visibility: hidden; }
.blog-card-clickable { cursor: pointer; }
.has-cover-bg { background-size: cover; background-position: center; }
.blog-index-chip-active { border-color: var(--accent); color: var(--text); background: rgba(239,68,68,.08); }
.blog-inline-color { transition: color .2s ease; }
.blog-search-input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}
.blog-search-input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.blog-search-result-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-search-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239,68,68,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
.blog-search-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-search-pagination-link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.blog-search-pagination-link:hover {
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}
.blog-search-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
