/* =========================================
   GLOBAL STYLES & BRANDING (Baalbo.com)
   ========================================= */
* {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    background: #f5f8fc;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
}

/* HEADER */
.top-bar {
    background: #ffffff;
    padding: 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1000px;
    margin: auto;
    position: relative;
    text-align: center;
}

.brand-logo {
    height: 46px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0B8EDB;
}

.header-text p {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

/* --- TOOL WRAPPER --- */
.baalbo-tool-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* --- INPUT GROUP --- */
.input-section {
    max-width: 800px;
    margin: 0 auto 40px;
}

.input-group {
    display: flex;
    gap: 10px;
    background: #f8fafc;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: 0.3s;
}

.input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#flipkartUrl {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    color: #1e293b;
}

.btn-extract {
    background: #2874f0;
    /* Flipkart Blue */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-extract svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.btn-extract:hover {
    background: #1a5abd;
    transform: translateY(-2px);
}

.input-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

/* --- RESULT GRID --- */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.img-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 15px;
    transition: 0.3s;
}

.img-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.img-preview {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f5f9;
    margin-bottom: 15px;
}

.btn-download {
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background: #27ae60;
}

/* --- LOADER & EMPTY STATE --- */
.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2874f0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    padding: 40px;
    color: #94a3b8;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

/* 📱 MOBILE FIX */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    #flipkartUrl {
        background: #f8fafc;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .btn-extract {
        width: 100%;
        justify-content: center;
    }

    .tool-wrapper {
        padding: 20px;
        border-radius: 16px;
    }
}

/* =========================================
   BAALBO SEO CONTENT STYLING
   ========================================= */
.baalbo-seo-content {
    background: #fdfdfd;
    padding: 60px 20px;
    line-height: 1.8;
    color: #334155;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin: 40px 0 20px;
    border-left: 6px solid #2874f0;
    padding-left: 15px;
    font-weight: 800;
}

.seo-p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #475569;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.seo-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.step-guide {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #eff6ff;
    padding: 20px;
    border-radius: 12px;
}

.step-num {
    background: #2874f0;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50%;
}

.seo-ul {
    margin: 20px 0;
    padding-left: 20px;
}

.seo-ul li {
    margin-bottom: 12px;
    list-style-type: '✅';
    padding-left: 10px;
}

/* =========================================
   BAALBO FAQ ACCORDION - PREMIUM DESIGN
   ========================================= */

/* 1. Main Container */
.baalbo-faq-accordion {
    max-width: 100%;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 2. FAQ Card */
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-item:hover {
    border-color: #2874f0;
    box-shadow: 0 4px 15px rgba(40, 116, 240, 0.08);
}

/* 3. Question Button */
.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: 0.3s;
}

.faq-question.active {
    color: #2874f0;
    background: #f8fbff;
}

/* 4. Arrow Icon Styles */
.arrow-icon {
    font-style: normal;
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.4s ease;
    background: #f1f5f9;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.faq-question.active .arrow-icon {
    transform: rotate(180deg);
    background: #2874f0;
    color: #ffffff;
}

/* 5. Answer Body (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #ffffff;
}

.faq-answer p {
    padding: 0 24px 20px 24px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px 18px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 18px 15px 18px;
        font-size: 0.92rem;
    }

    .arrow-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        /* Fix for shrinking on small screens */
    }
}

/* 7. Hover effect for Question text */
.faq-question:hover span {
    color: #2874f0;
}

@media (max-width: 768px) {
    .seo-h2 {
        font-size: 1.6rem;
    }

    .seo-p {
        font-size: 1rem;
    }
}

/* =========================================
   RELATED TOOLS (5-Column Desktop)
   ========================================= */
.related-tools-premium {
    padding: 60px 0;
    background: #f9fafb;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.p-tool-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eef2f6;
    transition: 0.3s;
}

.p-tool-card:hover {
    transform: translateY(-5px);
    border-color: #0B8EDB;
}

.tool-icon-wrapper {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ===============================
   RELATED BLOGS - FIXED DESIGN
   ================================ */
.related-blogs {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.related-blogs-inner {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: left;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-readmore {
    display: inline-block;
    color: #0B8EDB;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.blog-readmore:hover {
    text-decoration: underline;
}

/* Responsive Blog Grid */
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

.footer {
    padding: 40px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-links a {
    color: #0B8EDB;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

/* UTILS */
.hidden {
    display: none;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 50px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .input-container-modern {
        flex-direction: column;
    }

    .brand-logo {
        position: static;
        transform: none;
        margin-bottom: 15px;
    }

    .header-inner {
        padding-top: 10px;
    }
}