/**
 * ════════════════════════════════════════════════════════════════
 * TOOL CONTENT STYLES
 * ════════════════════════════════════════════════════════════════
 * 
 * Styling for tool page content sections:
 * - Language toggle
 * - What is / How to / Features / FAQ sections
 * - Video embeds and image galleries
 * - Responsive design
 * 
 * ════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════ */

   .tool-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    background: var(--bg-primary);
}

.tool-content__container {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ═══════════════════════════════════════════════════════════════ */

.tool-content__lang-toggle {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    justify-content: center;
    padding: var(--space-2);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tool-lang-btn {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tool-lang-btn:hover {
    background: var(--gray-50);
    color: var(--text-primary);
}

.tool-lang-btn.active {
    background: var(--primary-600);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.tool-content__lang-content {
    display: none;
}

.tool-content__lang-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.tool-content__section {
    margin-bottom: var(--space-8);
}

.tool-content__section:last-child {
    margin-bottom: 0;
}

.tool-content__heading {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tool-content__heading svg {
    flex-shrink: 0;
    color: var(--primary-600);
}

.tool-content__text {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-secondary);
}

.tool-content__text p {
    margin-bottom: var(--space-4);
}

.tool-content__text p:last-child {
    margin-bottom: 0;
}

/* Marathi text styling */
.tool-content__lang-content[data-lang-content="mr"] .tool-content__text,
.tool-content__lang-content[data-lang-content="mr"] .tool-content__heading,
.tool-content__lang-content[data-lang-content="mr"] .tool-content__faq-q,
.tool-content__lang-content[data-lang-content="mr"] .tool-content__faq-a,
.tool-content__lang-content[data-lang-content="mr"] .tool-content__features li {
    font-family: 'Tiro Devanagari Marathi', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES LIST
   ═══════════════════════════════════════════════════════════════ */

.tool-content__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}

.tool-content__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-content__features li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */

.tool-content__faq {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.tool-content__faq-item {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.tool-content__faq-q {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.tool-content__faq-q::before {
    content: 'Q:';
    flex-shrink: 0;
    color: var(--primary-600);
    font-weight: 700;
}

.tool-content__faq-a {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding-left: calc(var(--space-2) + 1.2em); /* Align with Q: */
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO EMBED
   ═══════════════════════════════════════════════════════════════ */

.tool-content__video {
    margin: var(--space-6) 0;
}

.tool-content__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.tool-content__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE GALLERY
   ═══════════════════════════════════════════════════════════════ */

.tool-content__images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.tool-content__images img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition-fast);
}

.tool-content__images img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .tool-content {
        padding: var(--space-6) var(--space-4);
    }

    .tool-content__heading {
        font-size: var(--text-lg);
    }

    .tool-content__text {
        font-size: var(--text-sm);
    }

    .tool-content__features {
        grid-template-columns: 1fr;
    }

    .tool-content__images {
        grid-template-columns: 1fr;
    }

    .tool-content__lang-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-content {
        padding: var(--space-5) var(--space-3);
    }

    .tool-content__section {
        margin-bottom: var(--space-6);
    }

    .tool-content__heading {
        font-size: var(--text-base);
    }

    .tool-content__faq-a {
        padding-left: 0;
        margin-top: var(--space-2);
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES (hide content sections when printing tool output)
   ═══════════════════════════════════════════════════════════════ */

@media print {
    .tool-content {
        display: none;
    }
}