/* Categories Page Styles */
.categories-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 60px 0;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-header {
    text-align: center;
    margin-bottom: 60px;
}

.categories-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
}

.categories-header p {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.category-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.category-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
    line-height: 1.2;
}

.category-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 16px;
}

.category-count svg {
    width: 16px;
    height: 16px;
}

.category-description {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.category-tools {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.tool-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 0;
    padding: 16px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-card:last-child {
    border-bottom: none;
}

.tool-card:hover {
    background: #F9FAFB;
    transform: none;
    box-shadow: none;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1F2937;
    text-decoration: none;
    flex: 1;
    line-height: 1.4;
}

.tool-title:hover {
    color: #1F2937;
}

.tool-arrow {
    color: #9CA3AF;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tool-card:hover .tool-arrow {
    color: #6B7280;
    transform: translateX(4px);
}

.tool-arrow svg {
    width: 18px;
    height: 18px;
}

.view-all-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #F3F4F6;
    color: #374151;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
}

.view-all-button:hover {
    background: #E5E7EB;
    color: #1F2937;
    text-decoration: none;
    transform: translateY(-1px);
}

.view-all-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.view-all-button:hover svg {
    transform: translateX(2px);
}

.no-tools {
    text-align: center;
    color: #9CA3AF;
    font-style: italic;
    padding: 40px 20px;
}

.no-categories {
    grid-column: 1 / -1;
    text-align: center;
    color: #9CA3AF;
    font-style: italic;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .categories-container {
        max-width: 1200px;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .category-header {
        gap: 25px;
    }
    
    .category-icon {
        width: 90px;
        height: 90px;
    }
    
    .category-icon svg {
        width: 45px;
        height: 45px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .categories-page {
        padding: 40px 0;
    }
    
    .categories-header h1 {
        font-size: 2.5rem;
    }
    
    .categories-header p {
        font-size: 1.1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-section {
        padding: 30px 25px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
    
    .category-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-info {
        width: 100%;
    }
    
    .tool-title {
        font-size: 1rem;
    }
    
    .view-all-button {
        align-self: center;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .categories-container {
        padding: 0 15px;
    }
    
    .categories-grid {
        gap: 25px;
    }
    
    .category-section {
        padding: 25px 20px;
    }
    
    .categories-header h1 {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}