/* AIWriter.fun — site header / navigation */
.wr-header{
    position:sticky;top:0;z-index:1000;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
    border-bottom:1px solid #e2e8f0;
    box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.wr-navbar{padding:.65rem 0;align-items:center}
.wr-brand{
    font-size:1.35rem;font-weight:800;color:#1e293b!important;
    letter-spacing:-.01em;padding:.25rem 0;margin-right:1.5rem;
}
.wr-brand span{color:#f6993f}
.wr-brand:hover{color:#2563eb!important;text-decoration:none}
.wr-nav-toggler{
    border:1px solid #e2e8f0;border-radius:8px;padding:.4rem .65rem;
    background:#f8fafc;
}
.wr-nav-toggler:focus{outline:2px solid #93c5fd;outline-offset:2px;box-shadow:none}
.wr-nav-toggler .navbar-toggler-icon{
    width:1.15rem;height:1.15rem;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23334155' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.wr-nav-list{align-items:center;gap:.15rem}
.wr-nav-link{
    color:#475569!important;font-size:.875rem;font-weight:600;
    padding:.45rem .85rem!important;border-radius:999px;
    transition:color .15s ease,background .15s ease;
    white-space:nowrap;
}
.wr-nav-link:hover,.wr-nav-link:focus{
    color:#2563eb!important;background:#f1f5f9;
    font-weight:600!important;text-decoration:none;
}
.wr-nav-link.is-active{
    color:#1d4ed8!important;background:#eff6ff;
}
.wr-nav-dropdown{position:relative}
.wr-nav-details{position:relative}
.wr-nav-details>summary{
    list-style:none;cursor:pointer;display:flex;align-items:center;gap:.3rem;
}
.wr-nav-details>summary::-webkit-details-marker{display:none}
.wr-nav-chevron{
    display:inline-block;width:0;height:0;margin-top:1px;
    border-left:4px solid transparent;border-right:4px solid transparent;
    border-top:5px solid currentColor;opacity:.55;transition:transform .2s ease;
}
.wr-nav-details[open] .wr-nav-chevron{transform:rotate(180deg)}
.wr-nav-submenu{
    position:absolute;top:calc(100% + .35rem);left:50%;transform:translateX(-50%);
    min-width:210px;background:#fff;border:1px solid #e2e8f0;
    border-radius:12px;box-shadow:0 8px 24px rgba(15,23,42,.1);
    padding:.4rem;z-index:1100;
}
.wr-nav-submenu a{
    display:block;padding:.55rem .85rem;border-radius:8px;
    color:#334155!important;font-size:.875rem;font-weight:500;
    text-decoration:none!important;transition:background .15s ease,color .15s ease;
}
.wr-nav-submenu a:hover{background:#f1f5f9;color:#2563eb!important;font-weight:500!important}
.wr-nav-submenu a.is-active{background:#eff6ff;color:#1d4ed8!important;font-weight:600!important}
.wr-nav-lang{margin-left:.35rem;padding-left:.5rem;border-left:1px solid #e2e8f0}
.wr-nav-lang .lang{margin:0;padding:.35rem .5rem;border-radius:8px;transition:background .15s ease}
.wr-nav-lang .lang:hover,.wr-nav-lang .lang:focus{background:#f1f5f9}
@media(max-width:991.98px){
    .wr-nav-collapse{
        margin-top:.75rem;padding:.75rem 0 .25rem;
        border-top:1px solid #f1f5f9;
    }
    .wr-nav-list{align-items:stretch;gap:0}
    .wr-nav-link{
        padding:.65rem .5rem!important;border-radius:8px;
        font-size:.9375rem;
    }
    .wr-nav-lang{
        margin-left:0;padding-left:0;border-left:none;
        margin-top:.5rem;padding-top:.75rem;border-top:1px solid #f1f5f9;
    }
    .wr-nav-mobile-label{
        font-size:.7rem;font-weight:700;text-transform:uppercase;
        letter-spacing:.06em;color:#94a3b8;padding:.5rem .5rem .25rem;
    }
}

/* AIWriter.fun SEO layout enhancements */
.wr-hero{
    background:linear-gradient(135deg,#f8fafc 0%,#eff6ff 42%,#e0f2fe 100%);
    border:1px solid #dbeafe;border-radius:16px;color:#1e293b;
    padding:2.5rem 1.5rem;margin-bottom:1.5rem;
    box-shadow:0 1px 3px rgba(37,99,235,.06);
}
.wr-hero h1{
    font-size:clamp(1.5rem,4vw,2.25rem);font-weight:700;margin-bottom:.75rem;line-height:1.25;
    color:#1e293b;
}
.wr-hero .lead{color:#475569;opacity:1;max-width:720px;margin:0 auto;line-height:1.75;font-size:1.05rem}
.wr-hero .small{color:#64748b}
.wr-search-wrap{max-width:640px;margin:0 auto 1.25rem}
.wr-search-wrap .form-control{border-radius:999px;padding:.65rem 1.25rem;border:2px solid #e2e8f0;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.wr-tabs{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-bottom:1.25rem}
.wr-tab{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:999px;padding:.4rem 1rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease}
.wr-tab:hover,.wr-tab.is-active{background:#2563eb;border-color:#2563eb;color:#fff}
.wr-section{margin:2rem 0;padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.wr-section-title{font-size:1.35rem;font-weight:700;color:#1e293b;margin-bottom:1rem;text-align:center}
.wr-feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.wr-feature-card{padding:1.25rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;transition:transform .2s,box-shadow .2s;height:100%}
.wr-feature-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(37,99,235,.12)}
.wr-feature-card h3{font-size:1rem;font-weight:700;color:#1e293b;margin-bottom:.5rem}
.wr-feature-card p{font-size:.9rem;color:#64748b;margin:0;line-height:1.6}
.wr-steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.wr-step{text-align:center;padding:1rem}
.wr-step-icon{font-size:1.75rem;display:block;margin-bottom:.5rem}
.wr-step h3{font-size:.95rem;font-weight:700;color:#1e293b;margin-bottom:.35rem}
.wr-step p{font-size:.85rem;color:#64748b;margin:0;line-height:1.55}
.wr-trust-row{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem}
.wr-trust-badge{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:.75rem 1.25rem;text-align:center;min-width:140px}
.wr-trust-badge strong{display:block;color:#1d4ed8;font-size:.9rem}
.wr-trust-badge span{font-size:.8rem;color:#64748b}
.wr-tool-card{display:block;height:100%;padding:1rem 1rem 1.1rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-decoration:none!important;color:inherit!important;transition:all .2s ease}
.wr-tool-card:hover{border-color:#93c5fd;box-shadow:0 6px 16px rgba(37,99,235,.12);transform:translateY(-2px)}
.wr-tool-card .wr-tool-icon{font-size:2.25rem;line-height:1;margin-bottom:.5rem;color:#2563eb}
.wr-tool-card h3{font-size:.95rem;font-weight:700;color:#1e293b;margin:0 0 .35rem}
.wr-tool-card p{font-size:.8rem;color:#64748b;margin:0 0 .35rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wr-tool-more{display:block;margin-top:.25rem;font-size:.75rem;font-weight:600;color:#2563eb}
.wr-tool-card:hover .wr-tool-more{text-decoration:underline}
.wr-tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem}
@media(min-width:768px){.wr-tools-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
.wr-featured-scroll{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.wr-featured-scroll .wr-tool-card{min-width:200px;flex:0 0 200px;scroll-snap-align:start}
.wr-faq-grid{display:grid;gap:1rem}
@media(min-width:768px){.wr-faq-grid{grid-template-columns:1fr 1fr}}
.wr-faq-item{padding:1rem 1.25rem;border:1px solid #e2e8f0;border-radius:10px;background:#fafafa}
.wr-faq-item h3{font-size:.95rem;font-weight:700;color:#1e293b;margin-bottom:.5rem}
.wr-faq-item p{font-size:.875rem;color:#475569;margin:0;line-height:1.65}
.wr-partners{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.wr-partners a{display:inline-block;padding:.45rem 1rem;background:#f1f5f9;border-radius:999px;font-size:.85rem;color:#334155!important;text-decoration:none!important}
.wr-partners a:hover{background:#dbeafe;color:#1d4ed8!important}
.wr-suggest-cta{text-align:center;padding:1.5rem;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-radius:12px;border:1px dashed #7dd3fc}
.wr-detail-block{margin-top:1.5rem;padding:1.25rem 1.5rem;background:#fff;border-radius:12px;border:1px solid #e2e8f0}
.wr-detail-block h2{font-size:1.15rem;font-weight:700;color:#1e293b;margin-bottom:.75rem}
.wr-detail-features{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;margin-top:.75rem}
.wr-detail-feat{padding:.75rem;background:#f8fafc;border-radius:8px;text-align:center;font-size:.85rem}
.wr-detail-feat strong{display:block;color:#1e293b;font-size:.8rem;margin-bottom:.2rem}
.wr-detail-steps{counter-reset:wrstep;list-style:none;padding:0;margin:0}
.wr-detail-steps li{counter-increment:wrstep;padding:.5rem 0 .5rem 2rem;position:relative;font-size:.9rem;color:#475569;line-height:1.55}
.wr-detail-steps li::before{content:counter(wrstep);position:absolute;left:0;top:.45rem;width:1.4rem;height:1.4rem;background:#2563eb;color:#fff;border-radius:50%;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.wr-cate-block{margin-top:1.5rem}
.wr-new-badge{display:inline-block;background:#fef3c7;color:#b45309;font-size:.65rem;font-weight:700;padding:.15rem .45rem;border-radius:4px;margin-left:.35rem;vertical-align:middle}
.wr-category-section[data-hidden="true"]{display:none!important}
.wr-tool-item[data-hidden="true"]{display:none!important}
