/* page-tools.css - extracted from an inline <style> block, 2026-09-28 */
*, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --bg-color: #F5F5F5;
            --accent-color: #F5A623;
            --accent-hover: #E09000;
            --text-color: #333;
            --text-light: #666;
            --white: #fff;
            --shadow: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
            --radius: 12px;
            --radius-sm: 8px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Header */
        .header {
            background: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            padding: 1rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            color: var(--text-color);
            font-weight: 700;
            font-size: 1.25rem;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #FF6B35, #F5A623);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-icon svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        .nav {
            display: flex;
            gap: 1.5rem;
        }

        .nav a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav a:hover, .nav a.active {
            color: var(--accent-color);
        }

        /* Hero */
        .hero {
            text-align: center;
            padding: 3rem 1rem;
            background: linear-gradient(135deg, var(--white) 0%, var(--bg-color) 100%);
        }

        .hero h1 {
            font-size: clamp(1.75rem, 5vw, 2.5rem);
            font-weight: 800;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .hero h1 span {
            color: var(--accent-color);
        }

        .hero-subtitle {
            font-size: 1.125rem;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Breadcrumb */
        .breadcrumb {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem;
            font-size: 0.875rem;
        }

        .breadcrumb a {
            color: var(--accent-color);
            text-decoration: none;
        }

        .breadcrumb span {
            color: var(--text-light);
        }

        /* Main Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem 3rem;
        }

        /* Tabs */
        .tabs-container {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 3rem;
        }

        .tabs-nav {
            display: flex;
            flex-wrap: wrap;
            border-bottom: 2px solid var(--bg-color);
            background: #FAFAFA;
        }

        .tab-btn {
            flex: 1;
            min-width: 120px;
            padding: 1rem 0.5rem;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text-light);
            transition: all 0.2s;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
        }

        .tab-btn::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 3px;
            background: transparent;
            transition: background 0.2s;
        }

        .tab-btn:hover {
            background: var(--white);
            color: var(--text-color);
        }

        .tab-btn.active {
            color: var(--accent-color);
            background: var(--white);
        }

        .tab-btn.active::after {
            background: var(--accent-color);
        }

        .tab-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-color);
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-light);
        }

        .tab-btn.active .tab-icon {
            background: var(--accent-color);
            color: white;
        }

        /* Tab Content */
        .tab-content {
            display: none;
            padding: 2rem;
            animation: fadeIn 0.3s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .tool-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .tool-header h2 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .tool-header p {
            color: var(--text-light);
        }

        /* Converter Form */
        .converter-form {
            max-width: 700px;
            margin: 0 auto;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .url-input {
            width: 100%;
            padding: 1rem 1.25rem;
            border: 2px solid #E0E0E0;
            border-radius: var(--radius-sm);
            font-size: 1rem;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .url-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
        }

        .url-input::placeholder {
            color: #999;
        }

        .options-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .format-select, .quality-select {
            flex: 1;
            min-width: 140px;
            padding: 0.75rem 1rem;
            border: 2px solid #E0E0E0;
            border-radius: var(--radius-sm);
            font-size: 0.9375rem;
            background: var(--white);
            cursor: pointer;
        }

        .format-select:focus, .quality-select:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        .btn-convert {
            width: 100%;
            padding: 14px 32px;
            background: var(--accent-color);
            color: var(--white);
            border: none;
            border-radius: var(--radius-sm);
            font-size: 1.125rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-convert:hover {
            background: var(--accent-hover);
        }

        .btn-convert:active {
            transform: scale(0.98);
        }

        .btn-convert .icon-download {
            width: 20px;
            height: 20px;
        }

        .btn-convert .icon-download svg {
            fill: currentColor;
        }

        .tool-features {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }

        .tool-feature {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-light);
            font-size: 0.875rem;
        }

        .tool-feature-icon {
            color: #4CAF50;
            font-weight: bold;
        }

        /* How To Section */
        .section {
            margin-bottom: 3rem;
        }

        .section-title {
            text-align: center;
            font-size: 1.75rem;
            margin-bottom: 2rem;
            color: var(--text-color);
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .step-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 2rem;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .step-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        .step-number {
            width: 48px;
            height: 48px;
            background: var(--accent-color);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0 auto 1rem;
        }

        .step-card h3 {
            font-size: 1.125rem;
            margin-bottom: 0.5rem;
        }

        .step-card p {
            color: var(--text-light);
            font-size: 0.9375rem;
        }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
        }

        .feature-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 1.5rem;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.2s;
        }

        .feature-card:hover {
            transform: translateY(-2px);
        }

        .feature-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 0.75rem;
            background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(245,166,35,0.2));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .feature-icon svg {
            width: 28px;
            height: 28px;
            fill: var(--accent-color);
        }

        .feature-card h3 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .feature-card p {
            font-size: 0.875rem;
            color: var(--text-light);
        }

        /* FAQ Section */
        .faq-list {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--white);
            border-radius: var(--radius);
            margin-bottom: 1rem;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .faq-question {
            width: 100%;
            padding: 1.25rem 1.5rem;
            background: transparent;
            border: none;
            text-align: left;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.2s;
        }

        .faq-question:hover {
            background: #FAFAFA;
        }

        .faq-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s;
        }

        .faq-icon svg {
            width: 12px;
            height: 12px;
            fill: var(--text-light);
        }

        .faq-item.open .faq-icon {
            transform: rotate(180deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .faq-item.open .faq-answer {
            max-height: 500px;
        }

        .faq-answer-content {
            padding: 0 1.5rem 1.25rem;
            color: var(--text-light);
            line-height: 1.7;
        }

        /* Related Tools */
        .related-tools {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .related-tool-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            background: var(--white);
            border-radius: var(--radius);
            text-decoration: none;
            color: var(--text-color);
            box-shadow: var(--shadow);
            transition: transform 0.2s, box-shadow 0.2s;
            font-weight: 500;
        }

        .related-tool-link:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .related-tool-icon {
            width: 36px;
            height: 36px;
            background: var(--bg-color);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .related-tool-icon svg {
            width: 20px;
            height: 20px;
            fill: var(--accent-color);
        }

        /* Footer */
        .footer {
            background: #1a1a1a;
            color: #ccc;
            padding: 3rem 1rem 1.5rem;
            margin-top: 3rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h4 {
            color: var(--white);
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        .footer-section a {
            display: block;
            color: #999;
            text-decoration: none;
            padding: 0.25rem 0;
            font-size: 0.875rem;
            transition: color 0.2s;
        }

        .footer-section a:hover {
            color: var(--accent-color);
        }

        .footer-bottom {
            border-top: 1px solid #333;
            padding-top: 1.5rem;
            text-align: center;
            font-size: 0.875rem;
            color: #666;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav {
                display: none;
            }

            .tabs-nav {
                overflow-x: auto;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
            }

            .tab-btn {
                min-width: 100px;
                padding: 0.75rem 0.5rem;
                font-size: 0.75rem;
            }

            .tab-icon {
                width: 24px;
                height: 24px;
                font-size: 0.625rem;
            }

            .tab-content {
                padding: 1.5rem 1rem;
            }

            .tool-features {
                gap: 1rem;
            }

            .options-row {
                flex-direction: column;
            }

            .hero {
                padding: 2rem 1rem;
            }
        }

        /* Accessibility */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        :focus-visible {
            outline: 3px solid var(--accent-color);
            outline-offset: 2px;
        }

/* 2026-09-28 contrast: convert button and breadcrumb */
.btn-convert { background: #a34e00; color: #fff; }
.breadcrumb a { color: #595959; }

/* 2026-09-28 AA: this page renders its own near-black footer band */
.footer .footer-bottom p { color: #a3a3a3; }
/* breadcrumb links must not rely on colour alone */
.breadcrumb a { color: #595959; text-decoration: underline; text-underline-offset: 2px; }
