@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.fv-font-page {
    --fv-font: 'Inter', -apple-system, sans-serif;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --fv-primary: #ec4899;       
    --fv-text-dark: #0f172a;
    --fv-text-muted: #475569;
    --fv-bg-white: #ffffff;
    --fv-bg-soft: #f8fafc;
    --fv-border: #e2e8f0;
    --fv-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --fv-radius-md: 16px;

    /* GERÇEKÇİ IG LIGHT MODE */
    --ig-bg: #ffffff;
    --ig-text: #000000;
    --ig-text-muted: #737373;
    --ig-border: #dbdbdb;
    --ig-btn-bg: #efefef;
    --ig-link: #00376b;

    width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 0;
    font-family: var(--fv-font); color: var(--fv-text-dark); line-height: 1.6;
    box-sizing: border-box;
}

.fv-font-page * { box-sizing: border-box; }

body.dark .fv-font-page {
    --fv-text-dark: #f8fafc; --fv-text-muted: #94a3b8;
    --fv-bg-white: #1e293b; --fv-bg-soft: #0f172a; --fv-border: #334155;
    
    /* GERÇEKÇİ IG DARK MODE */
    --ig-bg: #000000;
    --ig-text: #ffffff;
    --ig-text-muted: #a8a8a8;
    --ig-border: #262626;
    --ig-btn-bg: #363636;
    --ig-link: #e0f1ff;
}

/* Breadcrumbs & Header */
.fv-font-page .fv-breadcrumb { width: 100%; max-width: 800px; margin: 0 auto 35px auto; padding: 10px 20px; background: rgba(241, 245, 249, 0.6); border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 50px; backdrop-filter: blur(8px); }
body.dark .fv-font-page .fv-breadcrumb { background: rgba(30, 41, 59, 0.6); border-color: rgba(51, 65, 85, 0.8); }
.fv-font-page .fv-bc-wrapper { display: flex; align-items: center; overflow-x: auto; gap: 10px; scrollbar-width: none; }
.fv-font-page .fv-bc-wrapper::-webkit-scrollbar { display: none; }
.fv-font-page .fv-bc-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--fv-text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s ease; }
.fv-font-page .fv-bc-item svg { stroke: var(--fv-primary); }
.fv-font-page .fv-bc-item:hover { color: var(--fv-primary); }
.fv-font-page .fv-bc-item.active { color: var(--fv-text-dark); font-weight: 700; background: var(--fv-bg-white); padding: 6px 14px; border-radius: 20px; box-shadow: var(--fv-shadow-md); border: 1px solid var(--fv-border); }
body.dark .fv-font-page .fv-bc-item.active { background: #0f172a; color: #f8fafc; border-color: #334155; }
.fv-font-page .fv-bc-divider { font-size: 10px; color: #94a3b8; opacity: 0.6; }

.fv-header-section { text-align: center; margin-bottom: 45px; padding: 0 20px; }
.fv-service-title { font-size: 32px; font-weight: 800; color: var(--fv-text-dark); margin: 0 0 15px 0; letter-spacing: -0.03em; line-height: 1.3; }
.fv-title-highlight { background: var(--ig-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.fv-service-subtitle { font-size: 16px; color: var(--fv-text-muted); font-weight: 500; max-width: 700px; margin: 0 auto; }

/* Workspace Layout (Desktop Optimal) */
.fv-generator-workspace { display: grid; grid-template-columns: 380px 1fr; gap: 40px; margin-bottom: 60px; align-items: start;}

/* ⚡ LEFT PANEL (STICKY ON DESKTOP) ⚡ */
.fv-left-panel { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px;}

.fv-input-wrapper { background: var(--fv-bg-white); border: 1px solid var(--fv-border); padding: 20px; border-radius: var(--fv-radius-md); box-shadow: var(--fv-shadow-md); }
.fv-input-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fv-input-header label { font-size: 15px; font-weight: 700; color: var(--fv-text-dark); display: flex; align-items: center; gap: 8px;}
.fv-input-header label i { color: var(--fv-primary); }
.fv-char-count { font-size: 12px; font-weight: 600; color: var(--fv-text-muted); background: var(--fv-bg-soft); padding: 4px 8px; border-radius: 8px;}
.fv-char-count.limit { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

textarea#bio-input { width: 100%; border: 2px solid var(--fv-border); background: var(--fv-bg-soft); border-radius: 12px; padding: 15px; font-family: var(--fv-font); font-size: 15px; color: var(--fv-text-dark); resize: none; outline: none; transition: border-color 0.3s, background-color 0.3s; line-height: 1.5; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);}
textarea#bio-input:focus { border-color: var(--fv-primary); background: var(--fv-bg-white); }

/* 📱 BİREBİR IG DEVICE SIMULATOR 📱 */
.ig-simulator-wrapper { display: flex; justify-content: center; }
.ig-device { width: 100%; max-width: 350px; height: auto; background: var(--ig-bg); border: 10px solid #111; border-radius: 40px; position: relative; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ig-text); transition: background 0.3s, color 0.3s;}
.ig-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: #111; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10;}
.ig-screen { padding: 40px 0 20px 0; width: 100%; height: 100%; display: flex; flex-direction: column;}

/* Top Nav */
.ig-top-nav { display: flex; justify-content: space-between; align-items: center; padding: 0 15px 15px 15px; font-size: 22px;}
.ig-nav-left { display: flex; align-items: center; font-weight: 700; font-size: 19px; letter-spacing: -0.5px;}
.ig-nav-right { display: flex; gap: 20px; align-items: center;}
.ig-nav-right i { cursor: pointer; }

/* Profile Stats & Avatar */
.ig-profile-stats { display: flex; align-items: center; justify-content: space-between; padding: 0 15px 15px 15px; }
.ig-avatar-container { position: relative; }
.ig-avatar-img { width: 85px; height: 85px; border-radius: 50% !important; object-fit: cover; border: 1px solid var(--ig-border); background: #fff;}
.ig-avatar-plus { position: absolute; bottom: 0; right: 0; background: #3b82f6; color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 3px solid var(--ig-bg); }
.ig-numbers-container { display: flex; gap: 20px; flex: 1; justify-content: center; margin-left: 10px;}
.ig-stat-block { display: flex; flex-direction: column; align-items: center; }
.ig-stat-num { font-size: 17px; font-weight: 700; color: var(--ig-text);}
.ig-stat-label { font-size: 13px; color: var(--ig-text); }

/* Bio Area */
.ig-bio-area { padding: 0 15px 15px 15px; font-size: 14px; line-height: 1.4; }
.ig-bio-name { font-weight: 600; color: var(--ig-text); font-size: 14px;}
.ig-bio-badge { color: var(--ig-text-muted); font-size: 13px; margin-bottom: 2px;}
.ig-bio-text-wrapper { position: relative; margin-bottom: 2px;}
.ig-bio-content { white-space: pre-wrap; word-break: break-word; color: var(--ig-text); font-size: 14px;}
.ig-bio-content.truncated { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig-bio-more { color: var(--ig-text-muted); cursor: pointer; display: none; margin-top: 2px; background: var(--ig-bg); font-weight: 500;}
.ig-bio-more.visible { display: inline-block; position: absolute; bottom: 0; right: 0; padding-left: 5px;}
.ig-bio-links { color: var(--ig-link); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: 5px;}

/* Action Buttons */
.ig-action-buttons { display: flex; gap: 6px; padding: 0 15px 20px 15px; }
.ig-btn { flex: 1; background: var(--ig-btn-bg); color: var(--ig-text); border: none; border-radius: 8px; padding: 8px 0; font-weight: 600; font-size: 13px; cursor: pointer;}
.ig-btn-icon { background: var(--ig-btn-bg); color: var(--ig-text); border: none; border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer;}

/* Highlights */
.ig-highlights-tray { display: flex; gap: 15px; padding: 0 15px 15px 15px; overflow-x: hidden; }
.ig-highlight-circle { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.igh-border { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--ig-border); display: flex; align-items: center; justify-content: center; }
.igh-inner { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.05);}
.new-highlight { font-size: 24px; color: var(--ig-text); font-weight: 300;}
.ig-highlight-circle span { font-size: 12px; color: var(--ig-text); }

/* Tabs */
.ig-grid-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--ig-border); padding-top: 10px; margin-top: 5px;}
.ig-tab { flex: 1; text-align: center; color: var(--ig-text-muted); font-size: 24px; padding-bottom: 10px;}
.ig-tab.active { color: var(--ig-text); border-bottom: 1px solid var(--ig-text); }


/* ⚡ RIGHT PANEL: TABS & FONTS LIST ⚡ */
.fv-right-panel { display: flex; flex-direction: column; height: 100%; min-width: 0; }

.fv-fonts-header h3 { font-size: 22px; font-weight: 800; color: var(--fv-text-dark); margin: 0 0 15px 0; }

/* ⚡ KATEGORİ SEKMELERİ (KESİLMEYİ ÖNLEYEN WRAP EKLENDİ) ⚡ */
.fv-category-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.fv-cat-btn { background: var(--fv-bg-white); border: 1px solid var(--fv-border); color: var(--fv-text-muted); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
body.dark .fv-cat-btn { background: var(--fv-bg-soft); }
.fv-cat-btn:hover { border-color: var(--fv-primary); color: var(--fv-primary); }
.fv-cat-btn.active { background: var(--fv-primary); color: #fff; border-color: var(--fv-primary); }

/* ⚡ 1. KAYDIRMA OPTİMİZASYONU (GPU İVMELENDİRMESİ) ⚡ */
.fv-fonts-list-wrapper { 
    max-height: 800px; 
    overflow-y: auto; 
    padding-right: 10px; 
    border-radius: 12px; 
    
    -webkit-overflow-scrolling: touch; 
    transform: translate3d(0, 0, 0); 
    overscroll-behavior-y: contain; 
    will-change: scroll-position;
}
.fv-fonts-list-wrapper::-webkit-scrollbar { width: 6px; }
.fv-fonts-list-wrapper::-webkit-scrollbar-track { background: var(--fv-bg-soft); border-radius: 10px;}
.fv-fonts-list-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
body.dark .fv-fonts-list-wrapper::-webkit-scrollbar-thumb { background: #475569; }

.fv-fonts-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px;}

/* ⚡ 2. TIKLANABİLİR FONT KARTLARI (VIRTUAL SCROLL İLE OPTİMİZE EDİLDİ) ⚡ */
.font-card { 
    background: var(--fv-bg-white); 
    border: 1px solid var(--fv-border); 
    padding: 18px 20px; 
    border-radius: var(--fv-radius-md); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    position: relative; 
    overflow: hidden;

    content-visibility: auto;
    contain-intrinsic-size: 74px;

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
body.dark .font-card { background: var(--fv-bg-soft); }
.font-card:hover { transform: translateY(-2px); border-color: var(--fv-primary); box-shadow: var(--fv-shadow-md);}
.font-card:active { transform: scale(0.98); }

.font-preview-area { flex: 1; overflow: hidden; padding-right: 15px; pointer-events: none;}
.font-label { font-size: 11px; font-weight: 700; color: var(--fv-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block;}
.font-result-text { font-size: 17px; color: var(--fv-text-dark); white-space: pre-wrap; word-break: break-word;}

.fv-btn-copy { 
    background: var(--fv-bg-soft); 
    color: var(--fv-text-dark); 
    border: 1px solid var(--fv-border); 
    border-radius: 10px; 
    padding: 10px 15px; 
    font-family: var(--fv-font); 
    font-weight: 600; 
    font-size: 13px; 
    cursor: pointer; 
    white-space: nowrap; 
    flex-shrink: 0; 
    pointer-events: none;

    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
body.dark .fv-btn-copy { background: var(--fv-bg-white); color: #0f172a;}
.font-card:hover .fv-btn-copy { background: var(--fv-primary); color: #fff; border-color: var(--fv-primary);}
.font-card.copied { border-color: #10b981; background: rgba(16, 185, 129, 0.05);}
.font-card.copied .fv-btn-copy { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }

/* ⚡ SEO ALANI GÖRSEL (HERO) ENTEGRASYONU ⚡ */
.fv-dynamic-seo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 50px auto 60px; }
.fv-dynamic-seo .info-container, .fv-dynamic-seo .article-container { background: var(--fv-bg-white); border: 1px solid var(--fv-border); border-radius: var(--fv-radius-lg); box-shadow: var(--fv-shadow-md); padding: 40px; }
.fv-dynamic-seo h2 { font-size: 20px; color: var(--fv-text-dark); margin-top: 0; margin-bottom: 20px; font-weight: 800; border-bottom: 2px solid var(--fv-primary); padding-bottom: 10px; display: inline-block;}
.fv-dynamic-seo p { color: var(--fv-text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 15px; }
.fv-dynamic-seo ul { padding-left: 20px; color: var(--fv-text-muted); font-size: 15px; line-height: 1.7; }
.fv-dynamic-seo li { margin-bottom: 10px; }
.fv-dynamic-seo strong { color: var(--fv-text-dark); }

/* Makalenin İçindeki Görsel Stili */
.fv-seo-with-image { display: flex; flex-direction: column; gap: 20px; }
.fv-seo-image-container { margin: 0; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid var(--fv-border); background: var(--fv-bg-soft);}
.fv-seo-image { width: 100%; height: auto; display: block; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media screen and (max-width: 900px) {
    .fv-generator-workspace { grid-template-columns: 1fr; }
    .fv-left-panel { position: static; margin-bottom: 20px;}
    .fv-fonts-list-wrapper { max-height: 600px; }
}

@media screen and (max-width: 768px) {
    .fv-font-page { padding: 15px 10px; }
    .fv-dynamic-seo { grid-template-columns: 1fr; }
    .ig-device { width: 100%; max-width: 400px; border-width: 8px;}
    .font-card { flex-direction: column; align-items: stretch; gap: 15px;}
    .fv-btn-copy { width: 100%; text-align: center;}
    .fv-dynamic-seo .info-container, .fv-dynamic-seo .article-container { padding: 20px; }
}