/* =============================================
   BLOG STYLES — WebDoktor
   ============================================= */

/* Blog Hero */
.blog-hero{position:relative;padding:160px 0 100px;background:var(--primary-dark);color:var(--white);overflow:hidden;text-align:center}
.blog-hero-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.blog-hero-bg .bh-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.45}
.blog-hero-bg .bh-orb-1{width:500px;height:500px;background:radial-gradient(circle,rgba(102,126,234,0.7) 0,transparent 70%);top:-15%;right:-8%;animation:float 20s ease-in-out infinite}
.blog-hero-bg .bh-orb-2{width:350px;height:350px;background:radial-gradient(circle,rgba(236,72,153,0.5) 0,transparent 70%);bottom:-10%;left:-5%;animation:float 24s ease-in-out infinite;animation-delay:8s}
.blog-hero-bg .bh-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px);background-size:50px 50px}
.blog-hero .container{position:relative;z-index:2}
.blog-hero-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 20px;background:rgba(255,255,255,0.08);backdrop-filter:blur(10px);border-radius:50px;border:1px solid rgba(255,255,255,0.15);margin-bottom:28px;animation:fadeInDown .7s cubic-bezier(0.16,1,0.3,1) .1s both}
.blog-hero-badge .badge-dot{width:8px;height:8px;background:#10b981;border-radius:50%;animation:pulse 2s ease-in-out infinite}
.blog-hero-badge .badge-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:rgba(255,255,255,0.85)}
.blog-hero-title{font-size:64px;font-weight:900;line-height:1.05;letter-spacing:-2.5px;margin-bottom:24px;color:var(--white);animation:fadeInUp .9s cubic-bezier(0.16,1,0.3,1) .2s both}
.blog-hero-title .gradient-word{background:var(--gradient-text);background-size:200% 200%;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:gradientShift 8s ease infinite}
.blog-hero-subtitle{font-size:19px;line-height:1.7;color:rgba(255,255,255,0.78);max-width:620px;margin:0 auto;animation:fadeInUp .9s cubic-bezier(0.16,1,0.3,1) .4s both}

/* Blog Filter Tabs */
.blog-filters{padding:40px 0 20px;background:var(--white);border-bottom:1px solid var(--gray-200);position:sticky;top:72px;z-index:800;backdrop-filter:blur(8px);background:rgba(255,255,255,0.97)}
.filter-tabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.filter-tab{padding:10px 24px;border-radius:50px;font-size:14px;font-weight:600;color:var(--gray-600);background:var(--gray-50);border:2px solid transparent;cursor:pointer;transition:var(--transition-fast);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.filter-tab:hover{color:var(--primary-purple);background:rgba(99,102,241,0.06);border-color:rgba(99,102,241,0.15)}
.filter-tab.active{color:var(--white);background:var(--gradient-primary);border-color:transparent}

/* Blog Grid */
.blog-listing{padding:80px 0 120px;background:var(--gray-50)}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}

/* Blog Card */
.blog-card{background:var(--white);border-radius:20px;overflow:hidden;box-shadow:var(--shadow-md);transition:var(--transition);position:relative;display:flex;flex-direction:column}
.blog-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-xl)}
.blog-card-image{height:220px;position:relative;overflow:hidden}
.blog-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(0.4,0,0.2,1)}
.blog-card:hover .blog-card-image img{transform:scale(1.08)}
.blog-card-category{position:absolute;top:16px;left:16px;padding:6px 16px;border-radius:50px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--white);z-index:2}
.blog-card-category--web{background:linear-gradient(135deg,#667eea,#764ba2)}
.blog-card-category--seo{background:linear-gradient(135deg,#10b981,#059669)}
.blog-card-category--marketing{background:linear-gradient(135deg,#f59e0b,#d97706)}
.blog-card-category--dizajn{background:linear-gradient(135deg,#ec4899,#be185d)}
.blog-card-category--social{background:linear-gradient(135deg,#06b6d4,#0891b2)}
.blog-card-category--hosting{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}
.blog-card-body{padding:28px;display:flex;flex-direction:column;flex:1}
.blog-card-meta{display:flex;align-items:center;gap:16px;margin-bottom:16px;font-size:13px;color:var(--gray-500)}
.blog-card-meta svg{width:14px;height:14px;stroke:var(--gray-400);flex-shrink:0}
.blog-card-meta span{display:inline-flex;align-items:center;gap:4px}
.blog-card-body h3{font-size:20px;font-weight:800;line-height:1.35;margin-bottom:12px;color:var(--gray-900);letter-spacing:-.3px}
.blog-card-body h3 a{color:inherit;text-decoration:none;transition:var(--transition-fast)}
.blog-card-body h3 a:hover{color:var(--primary-purple)}
.blog-card-excerpt{font-size:15px;line-height:1.7;color:var(--gray-600);margin-bottom:20px;flex:1}
.blog-card-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--primary-purple);text-decoration:none;transition:var(--transition-fast)}
.blog-card-link:hover{gap:10px}
.blog-card-link svg{width:16px;height:16px;transition:transform .3s ease}
.blog-card-link:hover svg{transform:translateX(4px)}

/* Blog CTA Banner */
.blog-cta{padding:100px 0;background:linear-gradient(135deg,var(--primary-dark) 0,#1a1a3e 100%);text-align:center;position:relative;overflow:hidden}
.blog-cta::before{content:'';position:absolute;top:-40%;left:50%;transform:translateX(-50%);width:700px;height:700px;background:radial-gradient(circle,rgba(102,126,234,0.15) 0,transparent 65%);pointer-events:none}
.blog-cta .container{position:relative;z-index:1}
.blog-cta h2{font-size:42px;font-weight:900;color:var(--white);margin-bottom:16px;letter-spacing:-1.5px}
.blog-cta p{font-size:18px;color:rgba(255,255,255,0.75);margin-bottom:36px;max-width:520px;margin-left:auto;margin-right:auto}

/* Reading Progress Bar */
.reading-progress{position:fixed;top:0;left:0;width:0;height:3px;background:linear-gradient(90deg,#667eea 0%,#764ba2 50%,#f093fb 100%);z-index:10000;transition:none;pointer-events:none;border-radius:0 2px 2px 0}

/* Table of Contents */
.post-toc{background:var(--gray-50);border:2px solid var(--gray-200);border-radius:16px;padding:28px 32px;margin:0 0 40px}
.post-toc-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;color:var(--gray-900);text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px;cursor:pointer;user-select:none}
.post-toc-title svg{width:20px;height:20px;stroke:var(--primary-purple);transition:transform .3s ease}
.post-toc.collapsed .post-toc-title svg{transform:rotate(-90deg)}
.post-toc-list{list-style:none;padding:0;margin:0;max-height:600px;overflow:hidden;transition:max-height .4s ease}
.post-toc.collapsed .post-toc-list{max-height:0}
.post-toc-list li{margin-bottom:8px}
.post-toc-list li:last-child{margin-bottom:0}
.post-toc-list a{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;text-decoration:none;font-size:15px;font-weight:500;color:var(--gray-600);transition:all .2s ease;border-left:3px solid transparent}
.post-toc-list a:hover{background:rgba(99,102,241,0.06);color:var(--primary-purple);border-left-color:var(--primary-purple)}
.post-toc-list a.active{background:rgba(99,102,241,0.08);color:var(--primary-purple);font-weight:700;border-left-color:var(--primary-purple)}
.post-toc-list li.toc-h3{padding-left:20px}
.post-toc-list li.toc-h3 a{font-size:14px;font-weight:400}

/* Social Share Buttons */
.post-share{display:flex;align-items:center;gap:12px;margin-bottom:48px;padding-bottom:48px;border-bottom:2px solid var(--gray-200);flex-wrap:wrap}
.post-share-label{font-size:14px;font-weight:700;color:var(--gray-900);text-transform:uppercase;letter-spacing:1px}
.share-btn{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none;transition:all .3s ease;border:2px solid var(--gray-200);background:var(--white);color:var(--gray-600);cursor:pointer}
.share-btn:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,0.1)}
.share-btn--x:hover{background:#000;border-color:#000;color:#fff}
.share-btn--fb:hover{background:#1877f2;border-color:#1877f2;color:#fff}
.share-btn--li:hover{background:#0077b5;border-color:#0077b5;color:#fff}
.share-btn--copy:hover{background:var(--primary-purple);border-color:var(--primary-purple);color:#fff}
.share-btn svg{width:18px;height:18px}
.share-btn--copy.copied{background:#10b981;border-color:#10b981;color:#fff}

/* =============================================
   SINGLE BLOG POST STYLES
   ============================================= */
.post-hero{position:relative;padding:160px 0 80px;background:var(--primary-dark);color:var(--white);overflow:hidden}
.post-hero-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.post-hero-bg .ph-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.4}
.post-hero-bg .ph-orb-1{width:500px;height:500px;background:radial-gradient(circle,rgba(102,126,234,0.6) 0,transparent 70%);top:-20%;right:-10%;animation:float 18s ease-in-out infinite}
.post-hero-bg .ph-orb-2{width:350px;height:350px;background:radial-gradient(circle,rgba(236,72,153,0.4) 0,transparent 70%);bottom:-15%;left:-5%;animation:float 24s ease-in-out infinite;animation-delay:8s}
.post-hero-bg .ph-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px);background-size:50px 50px}
.post-hero .container{position:relative;z-index:2;max-width:800px}
.post-category-badge{display:inline-block;padding:6px 18px;border-radius:50px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--white);margin-bottom:24px}
.post-hero-title{font-size:48px;font-weight:900;line-height:1.15;letter-spacing:-1.5px;margin-bottom:24px;color:var(--white);text-wrap:balance}
.post-hero-meta{display:flex;align-items:center;gap:20px;font-size:14px;color:rgba(255,255,255,0.7);flex-wrap:wrap}
.post-hero-meta svg{width:15px;height:15px;stroke:rgba(255,255,255,0.5);flex-shrink:0}
.post-hero-meta span{display:inline-flex;align-items:center;gap:5px}

/* Post Featured Image */
.post-featured-image{margin-top:-60px;position:relative;z-index:3;margin-bottom:60px}
.post-featured-image .container{max-width:900px}
.post-featured-image img{width:100%;height:420px;object-fit:cover;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,0.3)}

/* Post Content */
.post-content{padding:0 0 80px;background:var(--white)}
.post-content .container{max-width:760px}
.post-body{font-size:17px;line-height:1.85;color:var(--gray-700)}
.post-body h2{font-size:30px;font-weight:800;color:var(--gray-900);margin:48px 0 20px;letter-spacing:-.5px;line-height:1.3}
.post-body h3{font-size:22px;font-weight:700;color:var(--gray-900);margin:36px 0 16px;letter-spacing:-.3px}
.post-body p{margin-bottom:20px}
.post-body ul,.post-body ol{margin:20px 0;padding-left:24px}
.post-body li{margin-bottom:10px;padding-left:8px}
.post-body strong{color:var(--gray-900);font-weight:700}
.post-body blockquote{margin:32px 0;padding:24px 28px;background:linear-gradient(135deg,rgba(99,102,241,0.06) 0,rgba(118,75,162,0.06) 100%);border-left:4px solid var(--primary-purple);border-radius:0 12px 12px 0;font-style:italic;color:var(--gray-700)}
.post-body blockquote p{margin-bottom:0}
.post-body a{color:var(--primary-purple);text-decoration:underline;text-underline-offset:3px;font-weight:600;transition:var(--transition-fast)}
.post-body a:hover{color:#4f46e5}

/* Internal Link Box */
.internal-link-box{display:flex;align-items:center;gap:16px;padding:24px 28px;background:var(--gray-50);border:2px solid var(--gray-200);border-radius:16px;margin:32px 0;transition:var(--transition)}
.internal-link-box:hover{border-color:rgba(99,102,241,0.3);background:rgba(99,102,241,0.04);transform:translateX(4px)}
.internal-link-box-icon{width:48px;height:48px;background:var(--gradient-primary);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.internal-link-box-icon svg{width:22px;height:22px;stroke:white}
.internal-link-box-text{display:flex;flex-direction:column;gap:2px}
.internal-link-box-text strong{font-size:15px;font-weight:700;color:var(--gray-900)}
.internal-link-box-text span{font-size:13px;color:var(--gray-500)}
.internal-link-box a{text-decoration:none}

/* Post Footer / Related */
.post-footer{padding:60px 0;background:var(--gray-50)}
.post-footer .container{max-width:900px}

/* Related Posts */
.related-posts h3{font-size:28px;font-weight:800;color:var(--gray-900);margin-bottom:32px;letter-spacing:-.5px}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.related-card{display:flex;gap:20px;padding:24px;background:var(--white);border-radius:16px;border:2px solid var(--gray-100);text-decoration:none;transition:var(--transition)}
.related-card:hover{border-color:rgba(99,102,241,0.3);transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.related-card-image{width:120px;height:100px;border-radius:12px;overflow:hidden;flex-shrink:0}
.related-card-image img{width:100%;height:100%;object-fit:cover}
.related-card-body{display:flex;flex-direction:column;justify-content:center}
.related-card-body span{font-size:12px;font-weight:600;color:var(--primary-purple);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.related-card-body strong{font-size:16px;font-weight:700;color:var(--gray-900);line-height:1.4}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:1279px){
    .blog-grid{grid-template-columns:repeat(2,1fr)}
    .blog-hero-title{font-size:52px}
    .post-hero-title{font-size:40px}
}
@media(max-width:767px){
    .blog-hero{padding:120px 0 70px}
    .blog-hero-title{font-size:36px;letter-spacing:-1.5px}
    .blog-hero-subtitle{font-size:16px}
    .blog-filters{top:64px}
    .filter-tabs{gap:6px}
    .filter-tab{padding:8px 16px;font-size:13px}
    .blog-grid{grid-template-columns:1fr;max-width:520px;margin:0 auto}
    .blog-card-image{height:200px}
    .blog-listing{padding:60px 0 80px}
    .blog-cta h2{font-size:30px}
    .blog-cta p{font-size:16px}
    .post-hero{padding:100px 0 60px}
    .post-hero-title{font-size:30px;letter-spacing:-1px}
    .post-featured-image img{height:260px;border-radius:14px}
    .post-body{font-size:16px}
    .post-body h2{font-size:24px;margin:36px 0 16px}
    .post-body h3{font-size:19px}
    .related-grid{grid-template-columns:1fr}
    .post-share{flex-wrap:wrap}
    .internal-link-box{flex-direction:column;text-align:center}
    .post-toc{padding:20px 24px}
    .post-toc-list a{font-size:14px;padding:6px 10px}
    .blog-hero-bg .bh-orb{opacity:.3}
    .post-hero-bg .ph-orb{opacity:.25}
}
@media(max-width:479px){
    .blog-hero-title{font-size:28px}
    .blog-card-body{padding:20px}
    .blog-card-body h3{font-size:18px}
    .blog-cta{padding:60px 0}
    .blog-cta h2{font-size:24px}
    .post-hero-title{font-size:26px}
    .post-content .container{padding:0 16px}
    .post-featured-image img{height:200px}
    .related-card{flex-direction:column}
    .related-card-image{width:100%;height:160px}
}

/* =============================================
   SEO TABLE
   ============================================= */
.seo-table{width:100%;border-collapse:collapse;margin:2rem 0 2.5rem;font-size:0.9rem;border-radius:10px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,0.07)}
.seo-table caption{font-weight:700;font-size:0.95rem;margin-bottom:0.6rem;text-align:left;color:var(--text-primary)}
.seo-table thead tr{background:var(--primary);color:#fff}
.seo-table th{padding:0.7rem 1rem;text-align:left;font-weight:600;font-size:0.85rem;letter-spacing:0.4px}
.seo-table td{padding:0.6rem 1rem;border-bottom:1px solid var(--border);color:var(--text-secondary);line-height:1.5}
.seo-table tbody tr:last-child td{border-bottom:none}
.seo-table tbody tr:nth-child(even){background:var(--bg-secondary)}
.seo-table tbody tr:hover{background:rgba(99,102,241,0.05)}
@media(max-width:640px){
    .seo-table{font-size:0.8rem}
    .seo-table th,.seo-table td{padding:0.5rem 0.65rem}
}

/* =============================================
   FAQ SECTION
   ============================================= */
.post-faq{margin:3rem 0 2rem}
.post-faq>h2{font-size:1.6rem;margin-bottom:1.5rem;color:var(--text-primary)}
.faq-item{border:1px solid var(--border);border-radius:10px;padding:1.25rem 1.5rem;margin-bottom:0.9rem;background:var(--bg-primary);transition:box-shadow .2s,border-color .2s}
.faq-item:hover{border-color:var(--primary);box-shadow:0 4px 16px rgba(99,102,241,0.1)}
.faq-question{font-size:1rem;font-weight:700;margin:0 0 0.55rem;color:var(--text-primary);line-height:1.4}
.faq-answer p{margin:0;color:var(--text-secondary);line-height:1.75;font-size:0.95rem}
@media(max-width:640px){
    .post-faq>h2{font-size:1.35rem}
    .faq-item{padding:1rem 1.15rem}
    .faq-question{font-size:0.95rem}
}
