/* ================================================================
   RESIML.INK — INNER PAGES REDESIGN v1
   ================================================================ */

/* ─── Page Header ─── */
.rh-page-header {
    background: #F8F9FF;
    position: relative;
    overflow: hidden;
    padding: 4.5rem 2rem 3.5rem;
    border-bottom: 1px solid #E2E8F0;
}
.rh-page-header .rh-grid-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.rh-page-header .rh-geo-blob {
    position: absolute; pointer-events: none; border-radius: 50%; z-index: 0; filter: blur(80px);
}
.rh-page-header .rh-geo-blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
    top: -150px; right: -150px;
}
.rh-page-header .rh-geo-blob-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(168,85,247,.12) 0%, transparent 70%);
    bottom: -100px; left: -80px;
}
.rh-page-header-inner {
    position: relative; z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.rh-page-kicker {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #4F46E5; margin-bottom: .85rem;
    background: #EEF2FF; padding: 5px 14px; border-radius: 100px;
    border: 1px solid rgba(99,102,241,.2);
}
.rh-page-h1 {
    font-size: 2.75rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
    color: #0F172A !important;
    margin-bottom: 1rem !important;
}
.rh-page-sub {
    font-size: .97rem !important;
    color: #64748B !important;
    line-height: 1.75 !important;
    margin: 0 auto !important;
    max-width: 520px;
    font-weight: 400 !important;
}

/* ─── Breadcrumb nav ─── */
.rh-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    justify-content: center;
    font-size: .78rem; color: #94A3B8;
    margin-top: 1.25rem;
}
.rh-breadcrumb a { color: #4F46E5; text-decoration: none; font-weight: 600; }
.rh-breadcrumb a:hover { text-decoration: underline; }
.rh-breadcrumb i { font-size: .55rem; }

/* ─── Section wrappers ─── */
.rh-inner-section {
    background: white;
    padding: 4rem 2rem;
}
.rh-inner-section.rh-alt {
    background: #F8F9FF;
}

/* ─── Tools list ─── */
.rh-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1280px; margin: 0 auto;
}
.rh-tool-card {
    display: block;
    text-decoration: none !important;
    padding: 1.65rem;
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    background: #FAFBFF;
    transition: all .25s;
}
.rh-tool-card:hover {
    border-color: rgba(79,70,229,.25);
    box-shadow: 0 12px 40px rgba(79,70,229,.1);
    transform: translateY(-3px);
    background: white;
}
.rh-tool-card-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #EEF2FF, #EDE9FE);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.rh-tool-card-icon i { font-size: 1.1rem; color: #4F46E5; }
.rh-tool-card h3 {
    font-size: .98rem; font-weight: 700;
    color: #0F172A; margin-bottom: .3rem;
}
.rh-tool-card p {
    font-size: .85rem; color: #64748B;
    line-height: 1.6; margin: 0 0 .9rem 0;
}
.rh-tool-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .75rem; color: #94A3B8;
    padding-top: .75rem;
    border-top: 1px solid #F1F5F9;
}
.rh-tool-card-status {
    display: flex; align-items: center; gap: 5px;
    color: #22C55E; font-weight: 600;
}
.rh-tool-card-status i { font-size: .5rem; }
.rh-tool-card-count { font-weight: 600; color: #64748B; }

/* ─── Dropzone wrapper (tools subpages) ─── */
.rh-tool-dropzone-wrap {
    max-width: 680px; margin: 0 auto;
}

/* ─── FAQs ─── */
.rh-faqs-section {
    background: #F8F9FF;
    padding: 4rem 2rem;
}
.rh-faqs-inner {
    max-width: 760px; margin: 0 auto;
}
.rh-faqs-section .accordion-item {
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    margin-bottom: .75rem;
    overflow: hidden;
    background: white !important;
}
.rh-faqs-section .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: #0F172A !important;
    background: white !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 1.1rem 1.4rem;
}
.rh-faqs-section .accordion-button:not(.collapsed) {
    color: #4F46E5 !important;
    background: #F8F9FF !important;
    border-bottom: 1px solid #E2E8F0;
    border-radius: 14px 14px 0 0 !important;
}
.rh-faqs-section .accordion-button::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234F46E5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.rh-faqs-section .accordion-body {
    font-size: .9rem; color: #64748B; line-height: 1.7;
    padding: 1rem 1.4rem 1.2rem;
    background: white;
}

/* ─── Blog grid ─── */
.rh-blog-section {
    background: white;
    padding: 4rem 2rem;
}
.rh-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1280px; margin: 0 auto;
}
.rh-blog-card {
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    overflow: hidden;
    background: #FAFBFF;
    transition: all .25s;
}
.rh-blog-card:hover {
    border-color: rgba(79,70,229,.2);
    box-shadow: 0 12px 40px rgba(79,70,229,.08);
    transform: translateY(-3px);
    background: white;
}
.rh-blog-img {
    width: 100%; height: 200px; overflow: hidden;
}
.rh-blog-img .covered {
    width: 100%; height: 200px;
    background-size: cover !important;
    background-position: center !important;
}
.rh-blog-body {
    padding: 1.4rem;
}
.rh-blog-cat {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: #4F46E5; margin-bottom: .6rem;
    background: #EEF2FF; padding: 3px 10px; border-radius: 100px;
    border: 1px solid rgba(99,102,241,.2);
}
.rh-blog-title {
    font-size: 1.05rem; font-weight: 700; line-height: 1.45;
    color: #0F172A !important; margin: 0;
}
.rh-blog-title a {
    color: #0F172A !important; text-decoration: none !important;
    transition: color .18s;
}
.rh-blog-title a:hover { color: #4F46E5 !important; }

/* ─── Blog inner ─── */
.rh-blog-inner-section {
    background: white;
    padding: 4rem 2rem;
}
.rh-blog-inner-wrap {
    max-width: 800px; margin: 0 auto;
}
.rh-blog-featured-img {
    width: 100%; height: 420px;
    border-radius: 20px; overflow: hidden;
    margin-bottom: 2rem;
}
.rh-blog-featured-img .covered {
    width: 100%; height: 420px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 20px;
}
.rh-blog-meta {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.rh-blog-meta-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8rem; color: #64748B; font-weight: 500;
    background: #F8F9FF; border: 1px solid #E2E8F0;
    padding: 5px 12px; border-radius: 100px;
}
.rh-blog-meta-badge i { color: #4F46E5; font-size: .75rem; }
.rh-share-bar {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 0; margin-top: 2rem;
    border-top: 1px solid #E2E8F0;
    flex-wrap: wrap;
}
.rh-share-bar > span { font-weight: 700; color: #0F172A; font-size: .9rem; }
.rh-share-bar a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px; border: 1px solid #E2E8F0;
    color: #475569 !important; text-decoration: none !important;
    transition: all .18s;
    background: white;
}
.rh-share-bar a:hover {
    border-color: #4F46E5; color: #4F46E5 !important;
    background: #EEF2FF;
}

/* ─── Comments ─── */
.rh-comments-section { margin-top: 3rem; }
.rh-comments-title {
    font-size: 1.2rem; font-weight: 800; color: #0F172A;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}
.rh-comment {
    display: flex; gap: 1rem; margin-bottom: 1.5rem;
}
.rh-comment-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #E2E8F0;
}
.rh-comment-avatar .covered { width: 44px; height: 44px; background-size: cover !important; background-position: center !important; }
.rh-comment-name { font-weight: 700; color: #0F172A; font-size: .9rem; margin-bottom: .2rem; }
.rh-comment-date { font-size: .75rem; color: #94A3B8; margin-bottom: .5rem; }
.rh-comment-text { font-size: .9rem; color: #475569; line-height: 1.65; margin: 0; }
.rh-new-comment-title {
    font-size: 1.1rem; font-weight: 800; color: #0F172A;
    margin: 2rem 0 1rem;
    padding-top: 2rem; border-top: 1px solid #E2E8F0;
}

/* ─── Contact ─── */
.rh-contact-section {
    background: white;
    padding: 4rem 2rem;
}
.rh-contact-inner {
    max-width: 720px; margin: 0 auto;
}
.rh-contact-card {
    background: #FAFBFF;
    border: 1px solid #F1F5F9;
    border-radius: 24px;
    padding: 2.5rem;
}
.rh-contact-card .rh-section-head { margin-bottom: 2rem; }
.rh-form-label { font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.rh-contact-card .form-control {
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    font-size: .9rem !important;
    padding: .7rem 1rem !important;
    background: white !important;
    transition: border-color .18s !important;
}
.rh-contact-card .form-control:focus {
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1) !important;
}
.rh-contact-submit {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white !important;
    padding: 12px 28px; border-radius: 12px;
    font-size: .9rem; font-weight: 700;
    border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(79,70,229,.35);
    transition: all .2s;
    width: 100%;
    justify-content: center;
}
.rh-contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(79,70,229,.45);
}

/* ─── Dark mode ─── */
html.dark-mode .rh-page-header { background: #0c0c16; border-bottom-color: rgba(255,255,255,.06); }
html.dark-mode .rh-page-header .rh-grid-bg {
    background-image:
        linear-gradient(rgba(99,102,241,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.08) 1px, transparent 1px);
}
html.dark-mode .rh-page-h1 { color: #F1F5F9 !important; }
html.dark-mode .rh-page-sub { color: #94A3B8 !important; }
html.dark-mode .rh-page-kicker { background: rgba(79,70,229,.18); border-color: rgba(79,70,229,.3); color: #818CF8; }
html.dark-mode .rh-breadcrumb { color: #475569; }
html.dark-mode .rh-inner-section { background: #0d0d18; }
html.dark-mode .rh-inner-section.rh-alt { background: #0c0c16; }
html.dark-mode .rh-tool-card { background: #13132a; border-color: rgba(255,255,255,.06); }
html.dark-mode .rh-tool-card:hover { background: #1a1a38; border-color: rgba(79,70,229,.3); }
html.dark-mode .rh-tool-card h3 { color: #F1F5F9; }
html.dark-mode .rh-tool-card p { color: #94A3B8; }
html.dark-mode .rh-tool-card-meta { border-top-color: rgba(255,255,255,.06); color: #475569; }
html.dark-mode .rh-tool-card-count { color: #64748B; }
html.dark-mode .rh-faqs-section { background: #0c0c16; }
html.dark-mode .rh-faqs-section .accordion-item { background: #13132a !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .rh-faqs-section .accordion-button { background: #13132a !important; color: #F1F5F9 !important; }
html.dark-mode .rh-faqs-section .accordion-button:not(.collapsed) { background: #1a1a38 !important; color: #818CF8 !important; border-bottom-color: rgba(255,255,255,.06); }
html.dark-mode .rh-faqs-section .accordion-body { background: #13132a; color: #94A3B8; }
html.dark-mode .rh-blog-section { background: #0d0d18; }
html.dark-mode .rh-blog-card { background: #13132a; border-color: rgba(255,255,255,.06); }
html.dark-mode .rh-blog-card:hover { background: #1a1a38; border-color: rgba(79,70,229,.3); }
html.dark-mode .rh-blog-title a { color: #F1F5F9 !important; }
html.dark-mode .rh-blog-title a:hover { color: #818CF8 !important; }
html.dark-mode .rh-blog-inner-section { background: #0d0d18; }
html.dark-mode .rh-blog-meta-badge { background: #13132a; border-color: rgba(255,255,255,.07); color: #94A3B8; }
html.dark-mode .rh-share-bar > span { color: #F1F5F9; }
html.dark-mode .rh-share-bar { border-top-color: rgba(255,255,255,.07); }
html.dark-mode .rh-share-bar a { background: #13132a; border-color: rgba(255,255,255,.08); color: #94A3B8 !important; }
html.dark-mode .rh-share-bar a:hover { border-color: #818CF8; color: #818CF8 !important; background: rgba(79,70,229,.15); }
html.dark-mode .rh-comments-title { color: #F1F5F9; border-bottom-color: rgba(255,255,255,.07); }
html.dark-mode .rh-comment-avatar { border-color: rgba(255,255,255,.08); }
html.dark-mode .rh-comment-name { color: #F1F5F9; }
html.dark-mode .rh-comment-text { color: #94A3B8; }
html.dark-mode .rh-new-comment-title { color: #F1F5F9; border-top-color: rgba(255,255,255,.07); }
html.dark-mode .rh-contact-section { background: #0d0d18; }
html.dark-mode .rh-contact-card { background: #13132a; border-color: rgba(255,255,255,.06); }
html.dark-mode .rh-contact-card .form-control { background: #1a1a38 !important; border-color: rgba(255,255,255,.1) !important; color: #F1F5F9 !important; }
html.dark-mode .rh-contact-card .form-control:focus { border-color: #818CF8 !important; box-shadow: 0 0 0 3px rgba(129,140,248,.15) !important; }
html.dark-mode .rh-form-label { color: #94A3B8; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .rh-page-header { padding: 3rem 1.5rem 2.5rem; }
    .rh-page-h1 { font-size: 2rem !important; }
    .rh-inner-section, .rh-blog-section, .rh-blog-inner-section,
    .rh-faqs-section, .rh-contact-section { padding: 3rem 1.25rem; }
    .rh-blog-featured-img { height: 240px; }
    .rh-blog-featured-img .covered { height: 240px; }
    .rh-contact-card { padding: 1.75rem 1.5rem; }
}
@media (max-width: 480px) {
    .rh-page-h1 { font-size: 1.7rem !important; }
    .rh-tools-grid { grid-template-columns: 1fr; }
    .rh-blog-grid { grid-template-columns: 1fr; }
}

/* ─── Prose pages (terms, privacy, KVKK, custom pages) ─── */
.rh-prose-section {
    background: white;
    padding: 4rem 2rem;
}
.rh-prose-wrap {
    max-width: 820px;
    margin: 0 auto;
}
.rh-prose-body {
    font-size: .97rem;
    line-height: 1.85;
    color: #374151;
}
.rh-prose-body h1,
.rh-prose-body h2,
.rh-prose-body h3,
.rh-prose-body h4 {
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -.02em;
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.rh-prose-body h2 { font-size: 1.35rem; }
.rh-prose-body h3 { font-size: 1.1rem; }
.rh-prose-body p { margin-bottom: 1.1rem; }
.rh-prose-body ul,
.rh-prose-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}
.rh-prose-body li { margin-bottom: .4rem; }
.rh-prose-body a { color: #4F46E5; text-decoration: underline; }
.rh-prose-body a:hover { color: #7C3AED; }
.rh-prose-body strong { color: #0F172A; font-weight: 700; }
.rh-prose-body blockquote {
    border-left: 3px solid #4F46E5;
    padding: .75rem 1.25rem;
    background: #F8F9FF;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
    color: #475569;
}
.rh-prose-body hr {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 2rem 0;
}
.rh-prose-body table {
    width: 100%; border-collapse: collapse;
    font-size: .9rem; margin-bottom: 1.5rem;
}
.rh-prose-body th {
    background: #F1F5F9; color: #0F172A;
    font-weight: 700; padding: .65rem 1rem;
    text-align: left; border: 1px solid #E2E8F0;
}
.rh-prose-body td {
    padding: .6rem 1rem;
    border: 1px solid #E2E8F0;
    color: #475569;
}

html.dark-mode .rh-prose-section { background: #0d0d18; }
html.dark-mode .rh-prose-body { color: #94A3B8; }
html.dark-mode .rh-prose-body h1,
html.dark-mode .rh-prose-body h2,
html.dark-mode .rh-prose-body h3,
html.dark-mode .rh-prose-body h4,
html.dark-mode .rh-prose-body strong { color: #F1F5F9; }
html.dark-mode .rh-prose-body blockquote { background: #13132a; color: #94A3B8; }
html.dark-mode .rh-prose-body hr { border-top-color: rgba(255,255,255,.07); }
html.dark-mode .rh-prose-body th { background: #1a1a38; color: #F1F5F9; border-color: rgba(255,255,255,.07); }
html.dark-mode .rh-prose-body td { border-color: rgba(255,255,255,.07); color: #94A3B8; }

@media (max-width: 768px) {
    .rh-prose-section { padding: 3rem 1.25rem; }
}
