/* Tool Page Styles - Premium Redesign */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    background: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HEADER */
.header {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.container.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.logo-highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* TOOL SECTION */
.tool-wrapper {
    padding: 60px 20px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tool-card-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 800px;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #1e293b;
    /* Fallback */
    margin: 0 0 20px 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 45px;
    line-height: 1.6;
    font-weight: 400;
}

/* BUTTONS */
.select-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.select-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.convert-btn {
    background: #0ea5e9;
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-top: 25px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.convert-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.convert-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    color: #334155;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

/* SEO CONTENT */
.seo-section {
    max-width: 800px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.seo-section h2 {
    font-size: 32px;
    color: #0f172a;
    margin-top: 60px;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.seo-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    margin-top: 10px;
    border-radius: 2px;
}

.seo-section h3 {
    font-size: 24px;
    color: #334155;
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.seo-section p {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
}

.seo-section ul,
.seo-section ol {
    margin-left: 20px;
    margin-bottom: 30px;
}

.seo-section li {
    font-size: 18px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 5px;
}

.seo-section ul li::marker {
    color: var(--primary);
    font-weight: bold;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    font-size: 20px;
    color: #1e293b;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.faq-item p {
    margin: 0;
    font-size: 17px;
    color: #64748b;
}

/* FOOTER */
.footer {
    background: #0f172a;
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    border-top: 1px solid #1e293b;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tool-wrapper {
        padding: 30px 15px;
    }

    .tool-card-container {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .select-btn {
        padding: 15px 25px;
        font-size: 16px;
        width: 100%;
    }
}