/* BestTools.website - Main Stylesheet - 2026 */
:root{--primary:#667eea;--primary-dark:#5a6fd6;--secondary:#764ba2;--accent:#f093fb;--text:#1a202c;--text-muted:#6b7280;--bg:#ffffff;--bg-light:#f8fafc;--border:#e5e7eb;--shadow:0 2px 8px rgba(0,0,0,.08);--shadow-lg:0 8px 30px rgba(0,0,0,.12);--radius:12px;--radius-sm:8px;--header-h:64px;--transition:all .2s ease;}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;font-size:16px;}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;}
a{color:var(--primary);text-decoration:none;}a:hover{text-decoration:underline;}
img{max-width:100%;height:auto;}
.container{max-width:1200px;margin:0 auto;padding:0 1rem;}
.text-center{text-align:center;}
.py-60{padding:60px 0;}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--primary);color:#fff;padding:.5rem 1rem;z-index:999;border-radius:0 0 var(--radius-sm) var(--radius-sm);}
.skip-link:focus{left:0;}
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--border);box-shadow:var(--shadow);}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);}
.logo-link{display:flex;align-items:center;gap:.5rem;text-decoration:none;}
.logo-text{font-size:1.2rem;font-weight:700;background:linear-gradient(135deg,var(--primary),var(--secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.logo-dot{font-weight:400;opacity:.8;}
.desktop-nav{display:flex;gap:.25rem;}
.desktop-nav a{padding:.5rem .9rem;border-radius:var(--radius-sm);color:var(--text-muted);font-weight:500;font-size:.95rem;transition:var(--transition);}
.desktop-nav a:hover,.desktop-nav a.active{background:var(--bg-light);color:var(--primary);text-decoration:none;}
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:.5rem;}
.hamburger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:var(--transition);}
.mobile-nav{display:none;position:fixed;top:var(--header-h);left:0;right:0;background:#fff;border-bottom:1px solid var(--border);z-index:99;padding:1rem;box-shadow:var(--shadow-lg);}
.mobile-nav a{display:block;padding:.75rem 1rem;border-radius:var(--radius-sm);color:var(--text);font-weight:500;}
.mobile-nav a:hover,.mobile-nav a.active{background:var(--bg-light);color:var(--primary);text-decoration:none;}
.mobile-nav.open{display:block;}
.breadcrumb{padding:.75rem 0;margin-bottom:1rem;}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.25rem;font-size:.875rem;color:var(--text-muted);}
.breadcrumb li+li::before{content:" / ";}
.breadcrumb a{color:var(--text-muted);}
.breadcrumb a:hover{color:var(--primary);}
.btn-primary{display:inline-flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;padding:.75rem 1.5rem;border:none;border-radius:50px;font-size:1rem;font-weight:600;cursor:pointer;transition:var(--transition);text-decoration:none;}
.btn-primary:hover{opacity:.9;transform:translateY(-1px);box-shadow:var(--shadow-lg);text-decoration:none;color:#fff;}
.btn-secondary{display:inline-flex;align-items:center;gap:.5rem;background:#fff;color:var(--primary);padding:.75rem 1.5rem;border:2px solid var(--primary);border-radius:50px;font-size:1rem;font-weight:600;cursor:pointer;transition:var(--transition);text-decoration:none;}
.btn-secondary:hover{background:var(--primary);color:#fff;text-decoration:none;}
.btn-large{padding:1rem 2rem;font-size:1.1rem;}
.btn-full{width:100%;justify-content:center;}
.hero-section{padding:80px 0 60px;text-align:center;background:linear-gradient(135deg,#f8faff,#f0f4ff);}
.hero-content h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:800;line-height:1.2;margin-bottom:1rem;}
.hero-subtitle{font-size:clamp(1rem,2vw,1.25rem);color:var(--text-muted);max-width:600px;margin:0 auto 2rem;}
.hero-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;}
.section-header{margin-bottom:2.5rem;}
.section-header h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;margin-bottom:.5rem;}
.section-header p{color:var(--text-muted);font-size:1.05rem;}
.section-label{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.1em;color:var(--primary);text-transform:uppercase;margin-bottom:.5rem;}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;}
.tool-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;transition:var(--transition);}
.tool-card:hover{box-shadow:var(--shadow-lg);border-color:var(--primary);transform:translateY(-2px);}
.tool-icon{width:52px;height:52px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;}
.tool-card h3{font-size:1.1rem;font-weight:600;margin-bottom:.25rem;}
.tool-card p{color:var(--text-muted);font-size:.9rem;margin-bottom:1rem;}
.tool-link{color:var(--primary);font-weight:600;font-size:.9rem;}
.tool-badge{display:inline-block;font-size:.7rem;font-weight:700;padding:.2rem .6rem;border-radius:50px;margin-bottom:.5rem;}
.text-badge{background:#e0e7ff;color:#3730a3;}
.dev-badge{background:#d1fae5;color:#065f46;}
.generator-badge{background:#fce7f3;color:#9d174d;}
.image-badge{background:#ede9fe;color:#5b21b6;}
.tool-page{max-width:800px;margin:0 auto;padding:2rem 0;}
.tool-header{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem;}
.tool-icon-lg{width:64px;height:64px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.tool-header h1{font-size:clamp(1.5rem,3vw,2rem);font-weight:700;margin-bottom:.25rem;}
.tool-header p{color:var(--text-muted);}
.tool-body{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.5rem;}
.tool-input-group{margin-bottom:1rem;}
.tool-label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.5rem;color:var(--text);}
.tool-textarea,.tool-input{width:100%;padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:1rem;font-family:inherit;resize:vertical;transition:var(--transition);background:#fff;}
.tool-textarea:focus,.tool-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(102,126,234,.15);}
.tool-mono{font-family:"Courier New",Courier,monospace;font-size:.9rem;}
.tool-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem;}
.tool-tabs{display:flex;gap:.5rem;margin-bottom:1rem;}
.tool-tab{padding:.5rem 1.25rem;border:1.5px solid var(--border);border-radius:50px;background:#fff;cursor:pointer;font-weight:600;font-size:.9rem;transition:var(--transition);}
.tool-tab.active{background:var(--primary);color:#fff;border-color:var(--primary);}
.tool-error{background:#fef2f2;border:1px solid #fca5a5;border-radius:var(--radius-sm);padding:.75rem 1rem;color:#dc2626;font-size:.9rem;margin-bottom:1rem;}
.tool-info{background:var(--bg-light);border-radius:var(--radius);padding:1.5rem 2rem;}
.tool-info h2{font-size:1.3rem;margin-bottom:.75rem;}
.tool-info h3{font-size:1.05rem;margin-top:1rem;margin-bottom:.5rem;}
.tool-info p,.tool-info li{color:var(--text-muted);font-size:.95rem;margin-bottom:.5rem;}
.tool-info ul,.tool-info ol{padding-left:1.25rem;}
.tool-info code{background:#e5e7eb;padding:.15rem .4rem;border-radius:4px;font-family:monospace;font-size:.875rem;color:#1a202c;}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1rem 0;}
@media(min-width:600px){.stats-row{grid-template-columns:repeat(6,1fr);}}
.stat-box{background:var(--bg-light);border-radius:var(--radius-sm);padding:.75rem;text-align:center;}
.stat-num{font-size:1.5rem;font-weight:700;color:var(--primary);}
.stat-label{font-size:.75rem;color:var(--text-muted);font-weight:500;}
.case-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0;}
.btn-case{padding:.5rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:#fff;cursor:pointer;font-size:.9rem;font-weight:500;transition:var(--transition);}
.btn-case:hover{background:var(--primary);color:#fff;border-color:var(--primary);}
.pg-output-group{display:flex;gap:.5rem;margin-bottom:1rem;}
.pg-output{flex:1;padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-family:monospace;font-size:1rem;}
.btn-icon{padding:.75rem 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;font-weight:600;white-space:nowrap;}
.pg-strength{height:6px;border-radius:3px;margin-bottom:1rem;background:#e5e7eb;overflow:hidden;}
.pg-strength-bar{height:100%;border-radius:3px;transition:width .3s;}
.pg-options{display:flex;flex-direction:column;gap:1rem;margin-bottom:1rem;}
.pg-option label{font-weight:600;font-size:.9rem;display:block;margin-bottom:.25rem;}
.pg-slider{width:100%;accent-color:var(--primary);}
.pg-checkboxes{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;}
.pg-check{display:flex;align-items:center;gap:.5rem;font-size:.9rem;cursor:pointer;}
.pg-quantity{font-size:.9rem;}
.pg-quantity select{padding:.25rem .5rem;border:1px solid var(--border);border-radius:4px;}
.pg-multiple{margin-top:1rem;}
.pg-multiple-item{display:flex;align-items:center;gap:.5rem;padding:.5rem;border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:.5rem;font-family:monospace;font-size:.9rem;}
.pg-multiple-item span{flex:1;}
.img-drop-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:3rem 2rem;text-align:center;cursor:pointer;transition:var(--transition);background:var(--bg-light);}
.img-drop-zone:hover{border-color:var(--primary);background:#f0f4ff;}
.img-drop-icon{font-size:3rem;margin-bottom:.75rem;}
.img-drop-hint{color:var(--text-muted);font-size:.875rem;}
.img-preview-wrap{text-align:center;padding:1rem 0;}
.img-preview{max-width:200px;max-height:200px;border-radius:var(--radius-sm);}
.img-info{font-size:.875rem;color:var(--text-muted);margin-top:.5rem;}
.img-output-area{margin-top:1rem;}
.slug-options{display:flex;flex-wrap:wrap;gap:1rem;margin:.75rem 0;}
.ad-unit{background:var(--bg-light);border:1px dashed var(--border);border-radius:var(--radius-sm);padding:1rem;text-align:center;margin:1.5rem 0;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.ad-label{font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;}
.feature-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;text-align:center;}
.feature-card h3{font-size:1.1rem;font-weight:600;margin:.75rem 0 .5rem;}
.feature-card p{color:var(--text-muted);font-size:.9rem;}
.feature-icon{font-size:2rem;}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;}
.blog-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;transition:var(--transition);}
.blog-card:hover{box-shadow:var(--shadow-lg);border-color:var(--primary);}
.blog-tag{display:inline-block;background:#e0e7ff;color:#3730a3;font-size:.75rem;font-weight:700;padding:.2rem .7rem;border-radius:50px;margin-bottom:.75rem;}
.blog-card h2,.blog-card h3{font-size:1.1rem;font-weight:600;margin-bottom:.5rem;line-height:1.4;}
.blog-card h2 a,.blog-card h3 a{color:var(--text);}
.blog-card h2 a:hover,.blog-card h3 a:hover{color:var(--primary);text-decoration:none;}
.blog-card p{color:var(--text-muted);font-size:.9rem;margin-bottom:.75rem;}
.blog-meta{font-size:.8rem;color:var(--text-muted);margin-bottom:.5rem;}
.blog-read-more{color:var(--primary);font-size:.9rem;font-weight:600;}
.blog-article{max-width:800px;margin:0 auto;}
.article-header{margin-bottom:2rem;}
.article-meta{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:.75rem;font-size:.85rem;color:var(--text-muted);}
.article-category{background:#e0e7ff;color:#3730a3;font-size:.75rem;font-weight:700;padding:.2rem .7rem;border-radius:50px;}
.blog-article h1{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;line-height:1.25;margin-bottom:1rem;}
.article-intro{font-size:1.1rem;color:var(--text-muted);border-left:4px solid var(--primary);padding-left:1rem;margin-bottom:2rem;}
.blog-article h2{font-size:1.5rem;font-weight:700;margin:2rem 0 .75rem;}
.blog-article h3{font-size:1.2rem;font-weight:600;margin:1.5rem 0 .5rem;}
.blog-article p{margin-bottom:1rem;line-height:1.75;}
.blog-article ul,.blog-article ol{padding-left:1.5rem;margin-bottom:1rem;}
.blog-article li{margin-bottom:.5rem;line-height:1.7;}
.blog-article code{background:#e5e7eb;padding:.15rem .4rem;border-radius:4px;font-family:monospace;font-size:.875rem;}
.block-code{display:block;background:#1e293b;color:#e2e8f0;padding:1rem;border-radius:var(--radius-sm);font-family:monospace;font-size:.875rem;margin:1rem 0;overflow-x:auto;}
.blog-article table{width:100%;border-collapse:collapse;margin:1rem 0;}
.blog-article th{background:var(--bg-light);font-weight:600;text-align:left;}
.blog-article th,.blog-article td{padding:.75rem 1rem;border:1px solid var(--border);font-size:.9rem;}
.blog-article tr:nth-child(even) td{background:var(--bg-light);}
.page-content{max-width:800px;margin:0 auto;padding:2rem 0;}
.page-content h1{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;margin-bottom:1rem;}
.page-content h2{font-size:1.4rem;font-weight:700;margin:1.5rem 0 .5rem;}
.page-content h3{font-size:1.1rem;font-weight:600;margin:1rem 0 .5rem;}
.page-content p{margin-bottom:.75rem;line-height:1.7;}
.page-content ul{padding-left:1.5rem;margin-bottom:.75rem;}
.page-content li{margin-bottom:.25rem;}
.lead{font-size:1.1rem;color:var(--text-muted);margin-bottom:1.5rem;}
.last-updated{color:var(--text-muted);font-size:.85rem;margin-bottom:1.5rem;}
.legal-content h2{border-bottom:1px solid var(--border);padding-bottom:.5rem;}
.contact-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-top:1.5rem;}
@media(min-width:768px){.contact-grid{grid-template-columns:3fr 2fr;}}
.form-group{margin-bottom:1.25rem;}
.form-group label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.4rem;}
.form-input{width:100%;padding:.75rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:1rem;font-family:inherit;transition:var(--transition);}
.form-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(102,126,234,.15);}
.contact-success{background:#d1fae5;border:1px solid #6ee7b7;border-radius:var(--radius-sm);padding:1.5rem;text-align:center;}
.contact-success h3{color:#065f46;font-size:1.1rem;margin-bottom:.5rem;}
.contact-info h3{font-size:1.05rem;font-weight:600;margin:1rem 0 .5rem;}
.contact-info p{font-size:.9rem;color:var(--text-muted);margin-bottom:.5rem;}
.category-filter,.categories{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem;}
.cat-btn,.category-pill{padding:.5rem 1.25rem;border:1.5px solid var(--border);border-radius:50px;background:#fff;cursor:pointer;font-size:.9rem;font-weight:500;transition:var(--transition);}
.cat-btn.active,.cat-btn:hover,.category-pill.active,.category-pill:hover{background:var(--primary);color:#fff;border-color:var(--primary);}
.stats-section{background:linear-gradient(135deg,var(--primary),var(--secondary));padding:60px 0;}
.stats-section .container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;text-align:center;}
.stat-item .num{font-size:3rem;font-weight:800;color:#fff;}
.stat-item .label{color:rgba(255,255,255,.8);font-size:1rem;}
.site-footer{background:#0f172a;color:#94a3b8;padding:60px 0 0;margin-top:60px;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;margin-bottom:3rem;}
.footer-logo{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;}
.footer-logo .logo-text{color:#fff;-webkit-text-fill-color:#fff;}
.site-footer p{font-size:.9rem;line-height:1.6;}
.footer-col h4{color:#fff;font-size:.875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:.5rem;}
.footer-col ul a{color:#94a3b8;font-size:.875rem;transition:color .2s;}
.footer-col ul a:hover{color:#fff;text-decoration:none;}
.footer-bottom{border-top:1px solid #1e293b;padding:1.5rem 0;text-align:center;font-size:.85rem;}
.footer-bottom a{color:#94a3b8;margin:0 .25rem;}
.footer-bottom a:hover{color:#fff;}
.encoding-table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.9rem;}
.encoding-table th{background:var(--bg-light);padding:.75rem;text-align:left;border:1px solid var(--border);font-weight:600;}
.encoding-table td{padding:.75rem;border:1px solid var(--border);}
.encoding-table tr:nth-child(even) td{background:var(--bg-light);}
@media(max-width:1023px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:767px){.desktop-nav{display:none;}.hamburger{display:flex;}.hero-section{padding:40px 0;}.footer-grid{grid-template-columns:1fr;}.tool-header{flex-direction:column;align-items:flex-start;}.stats-row{grid-template-columns:repeat(3,1fr);}.pg-checkboxes{grid-template-columns:1fr;}.tools-grid,.blog-grid,.features-grid{grid-template-columns:1fr;}.hero-actions{flex-direction:column;align-items:center;}.btn-primary,.btn-secondary{width:100%;max-width:300px;justify-content:center;}}
@media(max-width:480px){.container{padding:0 .75rem;}.tool-body{padding:1rem;}.tool-actions{flex-direction:column;}.tool-actions .btn-primary,.tool-actions .btn-secondary{width:100%;justify-content:center;}}