/* ============================================================
   fragments.css — styles extracted from layout.html & seo.html
   ============================================================ */

/* ── Related Tools (seo.html) ─────────────────────────────── */
.frag-related-tools {
    background: #f9f9f9;
    padding: 30px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.frag-related-tools h2 {
    font-size: 20px;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}
.frag-related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}
.frag-tool-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.frag-tool-link:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

/* ── Related Snowflake Tools (seo.html) ───────────────────── */
.frag-snowflake-section {
    background: linear-gradient(135deg, rgba(29,161,242,0.08) 0%, rgba(13,139,217,0.08) 100%);
    padding: 30px;
    border-top: 3px solid #1DA1F2;
    margin-top: 30px;
}
.frag-snowflake-section h2 {
    font-size: 22px;
    color: #1DA1F2;
    margin-bottom: 20px;
    text-align: center;
}
.frag-snowflake-section h3 {
    font-size: 18px;
    color: #1DA1F2;
    margin-bottom: 15px;
}
.frag-snowflake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}
.frag-snowflake-sub {
    margin-top: 20px;
    text-align: center;
}
.frag-snowflake-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.frag-sf-link {
    display: block;
    padding: 16px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #1a202c;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}
.frag-sf-link-twitter  { border: 2px solid #1DA1F2; box-shadow: 0 2px 8px rgba(29,161,242,0.1); }
.frag-sf-link-discord  { border: 2px solid #5865F2; box-shadow: 0 2px 8px rgba(88,101,242,0.1); }
.frag-sf-link-instagram{ border: 2px solid #E4405F; box-shadow: 0 2px 8px rgba(228,64,95,0.1); }
.frag-sf-link-twitter:hover  { background: #1DA1F2; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(29,161,242,0.3); }
.frag-sf-link-discord:hover  { background: #5865F2; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(88,101,242,0.3); }
.frag-sf-link-instagram:hover{ background: #E4405F; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(228,64,95,0.3); }
.frag-sf-sub-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 1px solid #1DA1F2;
    border-radius: 8px;
    text-decoration: none;
    color: #1DA1F2;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.frag-sf-sub-link:hover { background: rgba(29,161,242,0.08); border-width: 2px; }

/* ── Related Social Tools (seo.html) ──────────────────────── */
.frag-social-section {
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    padding: 30px;
    border-top: 3px solid #667eea;
    margin-top: 30px;
}
.frag-social-section h2 {
    font-size: 22px;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}
.frag-social-section h3 {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
}
.frag-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}
.frag-social-sub {
    margin-top: 20px;
    text-align: center;
}
.frag-social-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.frag-soc-link {
    display: block;
    padding: 16px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #1a202c;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}
.frag-soc-link-linkedin  { border: 2px solid #0077B5; box-shadow: 0 2px 8px rgba(0,119,181,0.1); }
.frag-soc-link-facebook  { border: 2px solid #1877F2; box-shadow: 0 2px 8px rgba(24,119,242,0.1); }
.frag-soc-link-instagram { border: 2px solid #E4405F; box-shadow: 0 2px 8px rgba(228,64,95,0.1); }
.frag-soc-link-tiktok    { border: 2px solid #000000; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.frag-soc-link-linkedin:hover  { background: #0077B5; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,119,181,0.3); }
.frag-soc-link-facebook:hover  { background: #1877F2; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(24,119,242,0.3); }
.frag-soc-link-instagram:hover { background: #E4405F; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(228,64,95,0.3); }
.frag-soc-link-tiktok:hover    { background: #000000; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.frag-soc-sub-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 1px solid #667eea;
    border-radius: 8px;
    text-decoration: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.frag-soc-sub-link:hover { background: rgba(102,126,234,0.08); border-width: 2px; }

/* ── Article Metadata bar (layout.html) ───────────────────── */
.frag-article-meta {
    background: #f7fafc;
    padding: 15px 20px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.frag-article-meta img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.2);
}
.frag-article-meta-fields {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #4a5568;
    flex: 1;
}
.frag-article-meta-fields .label { font-weight: 600; }
.frag-article-meta-fields a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}
.frag-article-meta-fields a:hover { text-decoration: underline; }
.frag-article-meta-fields time { color: #2d3748; }

/* ── Footer author card (layout.html) ─────────────────────── */
.frag-footer-author {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid rgba(102,126,234,0.3);
    box-shadow: 0 4px 15px rgba(102,126,234,0.1);
}
.frag-footer-author-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.frag-footer-author-info { flex: 1; min-width: 250px; }
.frag-footer-author-label {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}
.frag-footer-author-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.frag-footer-author-name-row img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.frag-footer-author-name {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    transition: color 0.2s;
}
.frag-footer-author-name:hover { color: #667eea; }
.frag-footer-author-role { font-size: 12px; color: #a0aec0; }
.frag-footer-author-bio { font-size: 13px; color: #cbd5e0; margin: 0; line-height: 1.7; }
.frag-footer-dates { display: flex; gap: 25px; flex-wrap: wrap; }
.frag-footer-date-box {
    text-align: center;
    padding: 12px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(102,126,234,0.3);
}
.frag-footer-date-label {
    font-size: 10px;
    color: #a0aec0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.frag-footer-date-box time { color: white; font-size: 15px; font-weight: 600; display: block; }

/* ── Footer links (layout.html) ───────────────────────────── */
.frag-footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.frag-footer-link .arrow { opacity: 0; transition: opacity 0.2s; font-weight: bold; }
.frag-footer-link:hover { color: #667eea; padding-left: 8px; }
.frag-footer-link:hover .arrow { opacity: 1; }

/* ── Footer popular-tools link (purple hover) ─────────────── */
.frag-footer-link-purple .arrow { opacity: 0; transition: all 0.2s; font-weight: bold; color: #667eea; }
.frag-footer-link-purple {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.frag-footer-link-purple:hover { color: #f093fb; padding-left: 8px; }
.frag-footer-link-purple:hover .arrow { opacity: 1; color: #667eea; }

/* ── Site Header (moved from layout.html <style> block) ───── */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: none;
    position: relative;
    z-index: 9999;
    border-radius: 24px;
    margin: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    isolation: isolate;
}
.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 65px;
}
.logo {
    color: white; text-decoration: none; font-size: 24px; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    transition: transform 0.3s ease; text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.logo:hover { transform: scale(1.05); }
.nav-menu { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; z-index: 1; }
.nav-link {
    color: white; text-decoration: none; padding: 20px 18px;
    display: flex; align-items: center; gap: 4px;
    font-size: 15px; font-weight: 500; transition: all 0.3s ease;
    position: relative; border-radius: 0; text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.nav-link:hover { background: rgba(255,255,255,0.15); }
.nav-link-sponsor { background: rgba(255,255,255,0.15); }
.dropdown-arrow { font-size: 10px; transition: transform 0.3s ease; }
.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: 100%; left: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-width: 300px;
    box-shadow: 0 10px 40px rgba(102,126,234,0.3), 0 0 0 1px rgba(102,126,234,0.1);
    border-radius: 16px; opacity: 0; visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    border: 2px solid rgba(102,126,234,0.2);
    overflow: hidden; pointer-events: none; z-index: 10000;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown::-webkit-scrollbar { width: 6px; }
.dropdown::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.dropdown::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); border-radius: 10px; }
.dropdown-section { padding: 15px 0; border-bottom: 1px solid #e2e8f0; }
.dropdown-section:first-child { padding-top: 10px; }
.dropdown-section:last-child { border-bottom: none; padding-bottom: 10px; }
.dropdown-title {
    padding: 8px 20px; font-size: 11px; font-weight: 700; color: #667eea;
    text-transform: uppercase; letter-spacing: 0.8px;
    display: flex; align-items: center; gap: 6px;
}
.dropdown-title::before { content: '▸'; font-size: 14px; color: #764ba2; }
.dropdown-link {
    display: flex; align-items: center; padding: 11px 20px;
    color: #2d3748; text-decoration: none; font-size: 14px;
    transition: all 0.2s ease; position: relative;
}
.dropdown-link::before { content: '→'; opacity: 0; margin-right: 0; transition: all 0.2s ease; color: #667eea; font-weight: bold; }
.dropdown-link:hover {
    background: linear-gradient(90deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    color: #667eea; padding-left: 28px; font-weight: 600;
    box-shadow: inset 4px 0 0 #667eea;
}
.dropdown-link:hover::before { opacity: 1; margin-right: 8px; }
.mobile-toggle {
    display: none; background: transparent; border: none; color: white;
    font-size: 24px; cursor: pointer; padding: 8px 12px;
    border-radius: 0; transition: all 0.3s ease;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.15); }
@media (max-width: 768px) {
    .nav-menu {
        display: none; position: absolute; top: 65px; left: 0; right: 0;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        flex-direction: column; gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        max-height: calc(100vh - 65px); overflow-y: auto;
    }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .nav-link { padding: 15px 20px; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: inset 0 4px 10px rgba(0,0,0,0.1);
        max-height: none; background: rgba(255,255,255,0.95);
        margin: 0 10px 10px 10px;
    }
    .nav-item:hover .dropdown { display: none; }
    .nav-item.active .dropdown { display: block; }
}

/* ── Site Footer ───────────────────────────────────────────── */
.site-footer-wrap {
    background: linear-gradient(180deg, #1a202c 0%, #0f1419 100%);
    color: #e2e8f0; padding: 60px 20px 20px; margin-top: 80px;
    border-top: 4px solid; border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) 1;
    box-shadow: 0 -10px 40px rgba(102,126,234,0.15);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 45px; margin-bottom: 50px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand-icon { font-size: 32px; filter: drop-shadow(0 0 10px rgba(102,126,234,0.5)); }
.footer-brand-name {
    color: white; font-size: 22px; font-weight: 700; margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand-desc { font-size: 14px; line-height: 1.8; color: #cbd5e0; margin-bottom: 18px; }
.footer-badge { color: white; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 2px 6px; border-radius: 4px; }
.footer-social-row { display: flex; gap: 12px; margin-top: 18px; }
.footer-gh-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(102,126,234,0.2) 0%, rgba(118,75,162,0.2) 100%);
    border: 2px solid rgba(102,126,234,0.4); border-radius: 10px;
    color: #cbd5e0; font-size: 20px; transition: all 0.3s ease;
}
.footer-gh-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea; transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102,126,234,0.5);
}
.footer-col-title {
    color: white; font-size: 17px; margin-bottom: 18px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.footer-col-title-text {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-links-col { display: flex; flex-direction: column; gap: 11px; }
.footer-bottom { border-top: 1px solid #2d3748; padding-top: 30px; }
.footer-copyright { text-align: center; }
.footer-copyright-main { font-size: 15px; color: #e2e8f0; margin-bottom: 12px; font-weight: 500; }
.footer-copyright-main strong { color: white; font-weight: 700; }
.footer-copyright-sub { font-size: 13px; color: #a0aec0; margin: 0; line-height: 1.6; }
.footer-copyright-sub strong { color: #cbd5e0; }
.footer-copyright-dates { font-size: 12px; color: #718096; margin-top: 12px; }
.footer-heart { color: #f56565; }
.footer-dot { color: #4a5568; margin: 0 8px; }
