/* Unique styles for free-tools page */

.tools-page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    gap: 0.5rem;
}

.tools-page-hero h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
}

.tools-page-hero > p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.6;
}

.tools-grid-section {
    padding: 2rem 0;
}


/* Shared section spacing for free tools */
.tool-hero {
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .tools-page-hero {
        padding: 1.5rem 0;
    }
    
    .tools-page-hero h1 {
        font-size: clamp(1.75rem, 4.5vw + 0.5rem, 2.5rem);
    }
    
    .tools-page-hero > p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .tools-grid-section {
        padding: 1.5rem 0;
    }
    
}

.tool-input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

/* Shared textarea sizing for tool pages */
.tool-textarea-container textarea {
    width: 100%;
    height: 295px;
    box-sizing: border-box;
    resize: vertical;
}


.tool-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-option-group h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--abyss);
}

.option-tabs {
    display: flex;
    background: var(--rain);
    border-radius: 12px;
    padding: 0.375rem;
    width: 100%;
    gap: 0.25rem;
}

.option-tabs button[role="tab"] {
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--slate);
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.option-tabs button[role="tab"][aria-selected="true"] {
    background: var(--clean);
    color: var(--abyss);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-tabs button[role="tab"]:hover:not([aria-selected="true"]) {
    color: var(--abyss);
    background: rgba(255, 255, 255, 0.5);
}

/* Tools-specific button modifications */
.tools-button {
    margin: 1rem 0;
}

.tool-examples h2,
.tool-benefits h2,
.tool-instructions h2,
.tip h2 {
    margin-bottom: 0;
}

.tip {
    padding: 1.5rem 0;
}





@media (max-width: 1024px) {
    .tool-input-section {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        gap: 1em;
    }
    
    .tool-input-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-options {
        order: -1;
        gap: 1.25rem;
    }
    
    .tool-textarea-container {
        order: 1;
    }
    
    .tool-option-group {
        gap: 0.5rem;
    }
    
    .option-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .option-tabs button[role="tab"] {
        flex: 1;
        padding: 0.625rem 0.5rem;
        font-size: 0.875rem;
        text-align: center;
    }

    /* Mobile textarea height */
    .tool-textarea-container textarea {
        height: 120px;
    }
    
}

