/* Tools Page Specific Styles */

.page-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.tools-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.tools-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.filter-checkbox:hover {
    color: var(--text-dark);
}

/* Tools Content */
.tools-content {
    min-height: 600px;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.results-info {
    font-weight: 600;
    color: var(--text-dark);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-white);
    cursor: pointer;
    font-size: 0.875rem;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-light);
}

/* Tool Card Extended Styles */
.tool-card {
    position: relative;
}

.tool-price-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

.tool-discount {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-discount i {
    color: #f59e0b;
}

.tool-card .tool-pricing {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-free {
    background-color: #d1fae5;
    color: #065f46;
}

.pricing-freemium {
    background-color: #dbeafe;
    color: #1e40af;
}

.pricing-paid {
    background-color: #fef3c7;
    color: #92400e;
}

.pricing-enterprise {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: relative;
        top: 0;
    }

    .tools-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}
